summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>2016-09-09 19:30:34 (GMT)
committerGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>2016-09-09 19:30:34 (GMT)
commitcb3f2c8f97d38385fb4672d52b18f4bbbf207348 (patch)
treece1de8acc226c5f78e28f5118873e5783bf4bf3b
parent255295f13edb70525aec6c05631eb863de299c9e (diff)
downloadcpython-cb3f2c8f97d38385fb4672d52b18f4bbbf207348.zip
cpython-cb3f2c8f97d38385fb4672d52b18f4bbbf207348.tar.gz
cpython-cb3f2c8f97d38385fb4672d52b18f4bbbf207348.tar.bz2
Add a note about queue not being safe for use from signal handlers.
issue14976.
-rw-r--r--Doc/library/queue.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/queue.rst b/Doc/library/queue.rst
index 1cb0935..f803852 100644
--- a/Doc/library/queue.rst
+++ b/Doc/library/queue.rst
@@ -186,6 +186,11 @@ Example of how to wait for enqueued tasks to be completed::
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`