File locking

Markus Stenberg mstenber at cc.Helsinki.FI
Mon Jun 7 00:47:02 EDT 1999


"Barry A. Warsaw" <bwarsaw at cnri.reston.va.us> writes:
> You might want to look at Mailman's flock.py module.  The doc string
> says:
>
>     Portable (?) file locking with timeouts.  
>     This code should work with all versions of NFS.
>     The algorithm was suggested by the GNU/Linux open() man page.  Make
>     sure no malicious people have access to link() to the lock file.
> 
> It's also been banged on quite a bit, although I'll make no guarantees 
> that it's bug free.  It's probably pretty close tho'.

At least on our HP-UX devel box (HP-UX 11.0) it failed miserably, didn't
have the time to examine why, though. 

> 
> -Barry

-Markus




More information about the Python-list mailing list