[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Deleting a file/directory on startup

On Tue January 15 2008, John Dennis wrote:

> Last week I answered and said a standard technique is the use of pid
> files and explained how it works. Is there some reason that approach
> does not give you exactly what you've asked for? The pid can either be
> in a separate pid file or in the lockfile, or both, just be aware of
> potential race conditions if the pid is in more than one file and do the
> operations in the correct order.

What should happen in case there is process that is running with the pid that 
is stored, but it is not the process that stored the pid? Then additional 
checking needs to performed which is all code that may cause bugs and is 
always a lot more complicated than a simple "rm -rf /.suspended".


Attachment: signature.asc
Description: This is a digitally signed message part.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]