tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pidfile_lock(3)
On Mon, Mar 21, 2016 at 04:44:40PM +0000, Roy Marples wrote:
> How else would you solve your need to work on NFS and my need to lock
> and handling crashing programs reliably?
I'm not sure that the problem of pidfile(3)-using crashing programs is
serious enough on its own to justify changing the kernel. However,
some open(2) or fcntl(2) advice that tells the kernel to try to unlink
a file when (# opens, # links) -> (0, 1) may be generally useful for
programs that use temporary files. Seems like the implementation could
be tricky: in the general case, you need to turn a descriptor back to a
path.
Dave
--
David Young
dyoung%pobox.com@localhost Urbana, IL (217) 721-9981
Home |
Main Index |
Thread Index |
Old Index