[ python-Bugs-1512163 ] mailbox (2.5b1): locking doesn't work (esp. on FreeBSD)
SourceForge.net
noreply at sourceforge.net
Sun Jun 25 17:38:46 CEST 2006
Bugs item #1512163, was opened at 2006-06-25 16:38
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1512163&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: David Watson (baikie)
Assigned to: Nobody/Anonymous (nobody)
Summary: mailbox (2.5b1): locking doesn't work (esp. on FreeBSD)
Initial Comment:
fcntl/flock() locking of mailboxes is actually disabled
due to a typo:
--- mailbox.py.orig
+++ mailbox.py
@@ -15,7 +15,7 @@
import rfc822
import StringIO
try:
- import fnctl
+ import fcntl
except ImportError:
fcntl = None
However, once enabled, it doesn't work on FreeBSD - the
lock() method always raises ExternalClashError (tested
on 5.3). This is because flock(), lockf() and fcntl
locking share the same underlying mechanism on this
system (and probably others), and so the second lock
can never be acquired.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1512163&group_id=5470
More information about the Python-bugs-list
mailing list