Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app: Call RegisterClient with well-known name, use retry loop
This closes a race condition for having the daemon idle exit. After the daemon has released its bus name, the dbus-daemon will no longer allow messages through that targeted its unique name. Since the intention of the `RegisterClient` method is to be the "knock on the door", fix this by directly sending a message to the well-known name. Second, we need to handle the case where the daemon exits without replying; @jlebon added a `sleep(10)` invocation after the daemon mainloop quit but before we `ReleaseName`, and I verified these two things combine to fix that case. Closes: #606 Approved by: jlebon
- Loading branch information
1 parent
3f367db
commit d31c9da
Showing
1 changed file
with
44 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters