Replacing evil looping code
Bastien Nocera
hadess at hadess.net
Fri Nov 10 09:25:48 PST 2006
On Fri, 2006-11-10 at 18:23 +0100, uwesmail2005-lkml at yahoo.de wrote:
> --- Bastien Nocera <hadess at hadess.net> schrieb:
<snip>
> > Any ideas welcome.
> Here is my idea: use the totem-name(w/o pid) to receive a call to a
> execute method (that is to get the args). Then in that method
> give up that name and assume the one with pid. On return you give
> back the pid so the caller can change its idea of the service name.
> in short: On startup connect to the bus w/o PID then change the name.
No good, it's racy.
--
Bastien Nocera <hadess at hadess.net>
More information about the dbus
mailing list