You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5a43697
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: Lib/signal.py
+54-31Lines changed: 54 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
import_signal
2
-
importos
3
2
from_signalimport*
4
3
fromenumimportIntEnumas_IntEnum
5
4
importthreading
6
5
importqueue
6
+
importtraceback
7
7
8
8
_globals=globals()
9
9
@@ -45,43 +45,65 @@ def _enum_to_int(value):
45
45
except (ValueError, TypeError):
46
46
returnvalue
47
47
48
-
_init_lock=threading.Lock()
49
48
_signal_queue=queue.SimpleQueue() # SimpleQueue has reentrant put, so it can safely be called from signal handlers. https://github.com/python/cpython/issues/59181
0 commit comments