File locking

Barry A. Warsaw barry at digicool.com
Tue Apr 24 15:45:15 EDT 2001


>>>>> "TW" == Thomas Wouters <thomas at xs4all.net> writes:

    TW> You can find Mailman on www.list.org, or use the cvsweb
    TW> running on Sourceforge to grab just LockFile.py.

BTW, Mailman's LockFile has some support for lock-breaking, which
makes the semantics and implementation, er, interesting.  If
LockFile.py turns out to be more generally useful to folks, it might
be worthwhile to factor the code out into breakable and unbreakable
locks.  Unbreakable locks can result in permanently unreachable
resources, or stale locks (e.g. if the process owning the lock
crashes).  So unbreakable locks would need manual intervention to
release.

-Barry




More information about the Python-list mailing list