summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-07-24 18:50:24 +0000
committerbwarsaw2002-07-24 18:50:24 +0000
commita4afcf1b1ca9e4ba41860654cc8cdff88bfcaa7e (patch)
treefe71423b4ce18afa370551545584cc1394621a6a
parentb4939a7b77c2e7b5b6f097ecd329695dd11229b3 (diff)
downloadmailman-a4afcf1b1ca9e4ba41860654cc8cdff88bfcaa7e.tar.gz
mailman-a4afcf1b1ca9e4ba41860654cc8cdff88bfcaa7e.tar.zst
mailman-a4afcf1b1ca9e4ba41860654cc8cdff88bfcaa7e.zip
acquire_lock_1(): Fix for bug # 565917 by Dale Stimson. The tempfile
needs to be prepended with the LOCK_DIR otherwise the unlink will fail. Also fixed a typo in the docstring.
-rw-r--r--bin/mailmanctl4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/mailmanctl b/bin/mailmanctl
index 016deae5e..7a6dc9aa2 100644
--- a/bin/mailmanctl
+++ b/bin/mailmanctl
@@ -59,7 +59,7 @@ Options:
-s/--stale-lock-cleanup
If mailmanctl finds an existing master qrunner lock, it will normally
- exit with an error message. With this optionn, mailmanctl will perform
+ exit with an error message. With this option, mailmanctl will perform
an extra level of checking. If a process matching the host/pid
described in the lock file is running, mailmanctl will still exit, but
if no matching process is found, mailmanctl will remove the apparently
@@ -193,7 +193,7 @@ def acquire_lock_1(force):
lock._disown()
hostname, pid, tempfile = get_lock_data()
os.unlink(LOCKFILE)
- os.unlink(tempfile)
+ os.unlink(os.path.join(mm_cfg.LOCK_DIR, tempfile))
return acquire_lock_1(force=0)