On 11.10.2017 11:32, 大橋 洋平 wrote:
Hi all,
My system recently had a lot of `dbus-daemon` processes floating around.
It seems that killing them in `~/.bash_logout` file, as instructed in
the book, is not adequate because it's not executed when the parent
shell is terminated by a signal e.g. SIGHUP.
It means losing a connection of ssh or killing mosh causes process leak.
I worked around by launching a background process in `~/.profile` which
watches the parent shell and kills dbus-daemon after it is gone.
Do you know any elegant solution for this? Or should I stick to putting
dbus-launch in `~/.xinitrc` or anything that is related to X?
Thanks,
Y. Ohashi
Use either dbus-launch --exit-with-session or dbus-run-session.
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page