tech-userlevel archive

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

Re: pidfile_lock(3)


"James K. Lowden" <> wrote:
 | (Michael van Elst) wrote:
 |> (Roy Marples) writes:
 |>>See here:

Well, btw., the MUA i maintain forks, keeping a communication pipe
to its parent, then creates the dotlock file, lingering on the
channel to get the "delete file" info.  Shall the parent die the
channel will close, which also counts as "delete file".  Thus
there will be no lingering pid file unless someone maliciously
kills that child or the system crashes: unfortunately there exists
no O_ flag that could be used to overcome the latter problem,
something that would allow file deletion but keep the name in the
in-memory VFS layer, so to say, unless the reference goes.  But
that can't be helped from userspace.


Home | Main Index | Thread Index | Old Index