Subject: Re: bug#10710: 23.4; left-over dbus processes

From: Michael Albinus <[email-masked]>
Date: Tue, 14 Feb 2012 22:09:04 +0100

[email-masked] (Per Starback) writes:

>   $ ssh -Y somehost
>   somehost$ emacs -Q --kill
>   somehost$ pstree `id -un`
>   dbus-daemon---{dbus-daemon}
>   
>   dbus-launch
>   
>   gconfd-2
>   
>   sshd---bash---pstree

If you analyze further, you'll see:

# ps -eaf | grep dbus-launch
albinus    4821     1  0 21:48 pts/3    00:00:00 dbus-launch --autolaunch 716f0514c3c408105bcdc5494b5c3d04 --binary-syntax --close-stderr

D-Bus is launched via the auto-launch feature of libdbus. This is
activated by default, if $DISPLAY is set. The invocation command as seen
above is hard-coded in dbus-sysdeps-unix.c, we cannot change it
ourselves.

It would be helpful, if the dbus-launch command would be called with the
--exit-with-session argument, but it isn't. I have no idea how to change
this behaviour.

Best regards, Michael.