Re: Deleting a file/directory on startup

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

 



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".

Regards,
Till 

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

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux