tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pidfile_lock(3)



On 20/03/2016 18:53, James K. Lowden wrote:
> The biggest problem with pidfiles IMO is stale files left over when the
> process terminates abnormally.  That could be remedied with a separate
> daemon, modelled on syslogd, that would create, update and delete
> them.  Modify pidfile(3) to use the daemon, and you solve all three
> problems.  

So I created pidfiled(8) here:
http://www.netbsd.org/~roy/pidfiled.c
http://www.netbsd.org/~roy/pidfiled.8
http://www.netbsd.org/~roy/pidfiled (rc.d script)

And patched pidfile(3) to *optionally* use it here:
http://www.netbsd.org/~roy/pidfile_lock.patch

Constructive thoughts and comments welcome.

Roy


Home | Main Index | Thread Index | Old Index