We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66da7bf commit 945bf8cCopy full SHA for 945bf8c
Doc/library/signal.rst
@@ -68,6 +68,11 @@ the synchronization primitives from the :mod:`threading` module instead.
68
69
Besides, only the main thread of the main interpreter is allowed to set a new signal handler.
70
71
+.. warning::
72
+
73
+ Synchronization primitives such as :class:`threading.Lock` should not be used
74
+ within signal handlers. Doing so can lead to unexpected deadlocks.
75
76
77
Module contents
78
---------------
0 commit comments