Skip to content

Commit e318c30

Browse files
committed
Wording
1 parent 3684c03 commit e318c30

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Doc/library/signal.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,9 @@ Besides, only the main thread of the main interpreter is allowed to set a new si
7070

7171
.. warning::
7272

73-
Synchronization primitives such as :class:`threading.Lock` must not be shared
74-
between signal handlers and other threads.
75-
Because blocking synchronization calls can be interrupted by signals,
76-
such sharing can lead to surprising dead locks.
73+
Synchronization primitives such as :class:`threading.Lock` should not be used
74+
within signal handlers. Because blocking synchronization calls can be
75+
interrupted by signals, such usage can lead to surprising dead locks.
7776

7877

7978
Module contents

0 commit comments

Comments
 (0)