------------------------------------------------------------
revno: 1391
fixes bug: https://launchpad.net/bugs/1189558
committer: Mark Sapiro <m...@msapiro.net>
branch nick: 2.1
timestamp: Mon 2013-06-10 14:35:21 -0700
message:
  - Fixed bin/mailmanctl -s to not remove the master lock if it can't be
    determined to be truly stale.  (LP: #1189558)
modified:
  NEWS
  bin/mailmanctl


--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1

Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'NEWS'
--- NEWS	2013-06-07 20:52:54 +0000
+++ NEWS	2013-06-10 21:35:21 +0000
@@ -61,6 +61,9 @@
 
   Bug Fixes and other patches
 
+    - Fixed bin/mailmanctl -s to not remove the master lock if it can't be
+      determined to be truly stale.  (LP: #1189558)
+
     - It is no longer possible to add 'invalid' addresses to the ban_list
       and the *_these_nonmembers filters from the check boxes on the admindb
       interface.  (LP: #1187201)

=== modified file 'bin/mailmanctl'
--- bin/mailmanctl	2012-11-24 20:16:55 +0000
+++ bin/mailmanctl	2013-06-10 21:35:21 +0000
@@ -1,6 +1,6 @@
 #! @PYTHON@
 
-# Copyright (C) 2001-2012 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2013 by the Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -199,7 +199,8 @@
         lock.lock(0.1)
         return lock
     except LockFile.TimeOutError:
-        if not force:
+        # If we're not forcing or the lock can't be determined to be stale.
+        if not force or qrunner_state():
             raise
         # Force removal of lock first
         lock._disown()

_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to