[Python-checkins] cpython (merge 3.5 -> default): Add a note about queue not being safe for use from signal handlers.

gregory.p.smith python-checkins at python.org
Fri Sep 9 15:31:26 EDT 2016


https://hg.python.org/cpython/rev/4e15e7618715
changeset:   103446:4e15e7618715
parent:      103444:a77756e480c2
parent:      103445:137806ca59ce
user:        Gregory P. Smith <greg at krypto.org> [Google Inc.]
date:        Fri Sep 09 12:31:05 2016 -0700
summary:
  Add a note about queue not being safe for use from signal handlers.
issue14976.

files:
  Doc/library/queue.rst |  5 +++++
  1 files changed, 5 insertions(+), 0 deletions(-)


diff --git a/Doc/library/queue.rst b/Doc/library/queue.rst
--- a/Doc/library/queue.rst
+++ b/Doc/library/queue.rst
@@ -189,6 +189,11 @@
         t.join()
 
 
+.. note::
+
+   The :mod:`queue` module is not safe for use from :mod:`signal` handlers as
+   it uses :mod:`threading` locks.
+
 .. seealso::
 
    Class :class:`multiprocessing.Queue`

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list