Session dbus-daemons not killed after logout

Havoc Pennington hp at redhat.com
Thu Feb 1 07:59:23 PST 2007


Jan Houtsma wrote:
>  From what i can tell in fedora it's launched from xinitrc(-common) as 
> follows:
> 
> [ -x /usr/bin/dbus-launch -a -z "$DBUS_SESSION_BUS_ADDRESS" ] && 
> DBUS_LAUNCH="/usr/bin/dbus-launch --exit-with-session"
> 

Are you sure the session bus is the one that's leaked?

http://lists.freedesktop.org/archives/dbus/2006-December/006662.html

In some "su" type situations, a new bus can be started automatically. 
These situations are more likely to cause bus leaks. You might see if 
just logging in as a user and logging out leaks a daemon, or if you have 
to do something more.

If autolaunch is the issue, to prevent autolaunch, you should be able to 
set DBUS_SESSION_BUS_ADDRESS to something, which will override the 
default ("autolaunch:") address.

Fixing this properly involves making "su" and "ssh" work right with dbus 
in the same way they work right with X. It would be good to have a 
volunteer to do this.

There may be some more info in the dbus-launch/dbus-daemon man pages, iirc.

Havoc



More information about the dbus mailing list