summaryrefslogtreecommitdiffstats
path: root/Doc/library/logging.rst
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2009-04-03 21:58:16 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2009-04-03 21:58:16 (GMT)
commit353a85f99ca954c220be61454af6c93258d4fd80 (patch)
treee71e884df45e98e7729cb9a456be22f51289501c /Doc/library/logging.rst
parenta178a69819239b3b1ff7eaf03ec9a24ffd30363b (diff)
downloadcpython-353a85f99ca954c220be61454af6c93258d4fd80.zip
cpython-353a85f99ca954c220be61454af6c93258d4fd80.tar.gz
cpython-353a85f99ca954c220be61454af6c93258d4fd80.tar.bz2
Clarified warning about logging use from asynchronous signal handlers.
Diffstat (limited to 'Doc/library/logging.rst')
-rw-r--r--Doc/library/logging.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 2a21d28..b555393 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -2351,9 +2351,10 @@ needing to be done by its clients. It achieves this though using threading
locks; there is one lock to serialize access to the module's shared data, and
each handler also creates a lock to serialize access to its underlying I/O.
-Note that in Linux/Unix environments, threading APIs may not be usable in
-asynchronous signal handlers. This may mean that you cannot use logging from
-within asynchronous signal handlers; please check your OS documentation.
+If you are implementing asynchronous signal handlers using the :mod:`signal`
+module, you may not be able to use logging from within such handlers. This is
+because lock implementations in the :mod:`threading` module are not always
+re-entrant, and so cannot be invoked from such signal handlers.
Configuration
-------------