Session daemon quitting

Havoc Pennington hp at redhat.com
Sun Apr 11 01:45:02 EST 2004


On Sat, 2004-04-10 at 10:23, Thomas Leonard wrote:
> Hi everyone! I'm trying to get ROX-Session to run a DBUS session daemon on
> startup so we can start trying to use it for IPC within the desktop.
> 
> However, there doesn't seem to be a fool-proof way to quit the daemon. I
> can call kill() on it from ROX-Session, but that won't work if ROX-Session
> itself crashes.
> 
> Is there an easy way to do this? Perhaps the daemon could select() on
> stdin, and quit when that closes? Then ROX-Session could just create a
> pipe for it...
> 
> (dbus-launch's babysitter has the same problem, as far as I can see)
> 
> I want to make this robust, because people aren't going to be happy if
> dbus-daemon processes start to pile up over time ;-)
> 

dbus-launch is supposed to be killing the daemon when the X connection
is lost or pipe is lost - essentially dbus-launch represents my best
attempt to bind the daemon to the session.

If dbus-launch isn't working, then the next step is a debugging effort
to see why not.

Havoc





More information about the dbus mailing list