Linux file locks ?
Mathias Waack
mathias-usenet at valpo.de
Thu Mar 27 06:31:00 EST 2003
"Robert" <k.robert at gmx.de> wrote:
> but whats funny, even if a file is opened and locked this way,
> it maybe deleted (rm
> x.lock) without a notice!?
Thats a feature, not a bug;)
Removing a file is (at least in Unix) an operation of a directory. It
changes the contents of the containing directory and does not touch
the file.
> How would one lock a file against
> removing ?
Use proper permissions or ACLs.
Mathias
More information about the Python-list
mailing list