Deleting a file/directory on startup

Till Maas opensource at till.name
Fri Jan 11 19:03:43 UTC 2008


On Fri January 11 2008, Jonathan Underwood wrote:

> Have a look at the logic used in the fail2ban init file - the start
> operation checks for a running fail2ban process. If non is found, it
> is safe to delete the lock file.

The logic in fail2ban is vulnerable to race conditions, which does not help 
for pm-utils, where it can easily happen that it is run several times very 
fast after each other.

Btw. the initial problem is to only delete a file at startup. I even found a 
bug report specifically about this: https://bugzilla.redhat.com/250927

Regards,
Till
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20080111/e178722b/attachment.sig>


More information about the fedora-devel-list mailing list