I've noticed for quite a while that some daemons hang around after exiting a gui. As a test, I took a freshly booted system and ran
'ps -ef'.

I thing started xfce using startx with the following line in .xinitrc:

ck-launch-session dbus-launch --exit-with-session xfce4-session

I took another snapshot of the processes and then exited xfce.

A third process snapshot compared to the first then showed five processes hanging around:

UID        PID  PPID  TIME CMD
root      1534     1  /usr/sbin/console-kit-daemon --no-daemon
polkitd   1601     1  /usr/lib/polkit-1/polkitd --no-debug
root      1685     1  /usr/libexec/upowerd
bdubbs    1791     1  /usr/bin/pulseaudio --start
bdubbs    1803  1791  /usr/libexec/pulse/gconf-helper

I notice that

/usr/lib/polkit-1/polkit-agent-helper-1
/usr/libexec/dbus-daemon-launch-helper

have the suid bit set so that's probably how the first three get started, but it's irritating that these don't get shut down upon exit.

I suppose on a multi-seat system you wouldn't want them shut down if another instance is using them, but shouldn't they be able to figure this out?

I don't think this is a BLFS specific issue, but does anyone have any thoughts about this?

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to