diff options
| author | bwarsaw | 2002-01-11 00:51:20 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-01-11 00:51:20 +0000 |
| commit | 26010ab00d9b9dfaa615d3a3c653513bac2f175e (patch) | |
| tree | 61963ae235b5d0623342746b636628ebf04f2ef4 /Mailman/Message.py | |
| parent | 0fdc0d80563e9f89928cdd87253cd73348c924b3 (diff) | |
| download | mailman-26010ab00d9b9dfaa615d3a3c653513bac2f175e.tar.gz mailman-26010ab00d9b9dfaa615d3a3c653513bac2f175e.tar.zst mailman-26010ab00d9b9dfaa615d3a3c653513bac2f175e.zip | |
Fix a race condition and a reference counting issue related to forced
lock acquisition in mailmanctl. Specifically,
_take_possession(): In the while-loop we need to not only check for
linkcount <> 2, but also that the contents of the lock file is our
magic token and not some other process's. This fixes the race
condition.
_disown(): Set the private __owned flag to false so __del__ won't try
to finalize, and thus unlink the lock files. This fixes the reference
counting problem in mailmanctl when both the failing non-forced lock
and the re-aquired force lock both point to the same files.
Diffstat (limited to 'Mailman/Message.py')
0 files changed, 0 insertions, 0 deletions
