[pulseaudio-tickets] [PulseAudio] #171: pid file handling and --check not working when a pid clash occurs
PulseAudio
trac-noreply at tango.0pointer.de
Wed Nov 28 02:55:03 PST 2007
#171: pid file handling and --check not working when a pid clash occurs
--------------------+-------------------------------------------------------
Reporter: coling | Owner: lennart
Type: defect | Status: new
Priority: normal | Milestone:
Component: daemon | Severity: normal
Keywords: |
--------------------+-------------------------------------------------------
When testing why a user's pulseaudio often fails to start I found some
annoying issues with the pid file handling.
Using a user-specific daemon, it writes a pid file in /tmp/pulse-user/pid
While pulse will normally clean up this pid file on exit, there are some
cases (it seems) when this fails to happen (not yet tracked this down, but
a crash or power failure could presumably cause it).
If e.g. on next reboot, there is not any process with that process id then
pulse will happily consider it stale and overwrite it. If however another,
completely separate process exists with that pid, pulse will not start and
{{{pulseaudio --check}}} will indicate it is running.
I think more stringent checks are needed to ensure the that process with
that number is indeed a pulse process (and not the current one which could
be an annoying oversight!!). If it is not a pulse process then it should
be considered stale as above.
--
Ticket URL: <http://www.pulseaudio.org/ticket/171>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server
More information about the pulseaudio-bugs
mailing list