On Wed, 26.03.08 12:04, Andrew Bartlett (abartlet@samba.org) wrote:
The best thing to do is to use the DBus session bus. Have pulseaudio grab a bus name such as org.pulseaudio.SessionDaemon.
Uh? Grab a name for nothing? Also, this would prohibit multiple instances of PA for different users.
Another very useful way to deal with this situation (which is what Samba does) is to take an fcntl lock on the PID file. This will nicely go away with the process, and clearly no other process will grab a lock on a pulse-audio.pid file.
We already use POSIX locking for making sure that access to the PID file is properly serialized.
Lennart