Barry Warsaw pushed to branch master at mailman / Mailman Core

Commits:
d1cbc8af by Barry Warsaw at 2017-07-27T23:10:42+00:00
Set a timeout on the lock acquisition

- - - - -
e6326533 by Barry Warsaw at 2017-07-27T23:10:42+00:00
Merge branch 'fix-hangs' into 'master'

Set a timeout on the lock acquisition

See merge request !305
- - - - -


1 changed file:

- src/mailman/commands/docs/status.rst


Changes:

=====================================
src/mailman/commands/docs/status.rst
=====================================
--- a/src/mailman/commands/docs/status.rst
+++ b/src/mailman/commands/docs/status.rst
@@ -15,9 +15,10 @@ The status is printed to stdout and a status code is 
returned.
 
 We can simulate the master starting up by acquiring its lock.
 
+    >>> from datetime import timedelta
     >>> from flufl.lock import Lock
     >>> lock = Lock(config.LOCK_FILE)
-    >>> lock.lock()
+    >>> lock.lock(timeout=timedelta(seconds=20))
     >>> ignore = cleanups.callback(lock.unlock, unconditionally=True)
 
 Getting the status confirms that the master is running.



View it on GitLab: 
https://gitlab.com/mailman/mailman/compare/ade94e8f833a9472ba9be52a08f4e2f381e7a212...e6326533b78290514ede917ed1cb95804759a45a

---
View it on GitLab: 
https://gitlab.com/mailman/mailman/compare/ade94e8f833a9472ba9be52a08f4e2f381e7a212...e6326533b78290514ede917ed1cb95804759a45a
You're receiving this email because of your account on gitlab.com.
_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to