diff options
| author | bwarsaw | 2002-03-13 05:55:28 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-03-13 05:55:28 +0000 |
| commit | e3c2af7859aa84a2fda80c9728b04e7f8e965e2e (patch) | |
| tree | e26a33257fcf30db5f80134d0a202a3d657172da /Mailman/Queue/OutgoingRunner.py | |
| parent | 735e2babc85f6f48047499ed4fbc33999e4dc486 (diff) | |
| download | mailman-e3c2af7859aa84a2fda80c9728b04e7f8e965e2e.tar.gz mailman-e3c2af7859aa84a2fda80c9728b04e7f8e965e2e.tar.zst mailman-e3c2af7859aa84a2fda80c9728b04e7f8e965e2e.zip | |
A fix for a subtle bug in lock file management. If a process opened
two LockFile instances on the same file, both would report that they
owned the lock. This is a bug because unlocking the one that
shouldn't have had the lock will unlock both.
__init__(): To fix this for now we keep a class attribute counter
which is incremented each time a new LockFile instance is created.
This wouldn't work in a multithreaded environment, be we don't have
the problem. ;)
__repr__(): Add a little more information to the repr.
refresh(): When raising the NotLockedError, add a little useful
debugging string as the exception value.
Diffstat (limited to 'Mailman/Queue/OutgoingRunner.py')
0 files changed, 0 insertions, 0 deletions
