flufl.lock Publisher's description
from Barry Warsaw
The ``flufl.lock`` library provides an NFS-safe file-based locking algorithm influenced by the GNU/Linux `open(2)` manpage
The ``flufl.lock`` library provides an NFS-safe file-based locking algorithm influenced by the GNU/Linux `open(2)` manpage, under the description of the `O_EXCL` option::
[...] O_EXCL is broken on NFS file systems, programs which rely on it for performing locking tasks will contain a race condition. The solution for performing atomic file locking using a lockfile is to create a unique file on the same fs (e.g., incorporating hostname and pid), use link(2) to make a link to the lockfile. If link() returns 0, the lock is successful. Otherwise, use stat(2) on the unique file to check if its link count has increased to 2, in which case the lock
is also successful.
What's New in This Release:· Add classifiers to setup.py and make the long description more compatible with the Cheeseshop.
· Other changes to make the Cheeseshop page look nicer. (LP: #680136)
· setup_helper.py version 2.1.
System Requirements:В· Python
Program Release Status: Minor Update
Program Install Support: Install and Uninstall