Thanks to visit codestin.com Credit goes to github.com
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 0a956f1 commit 74e7cf3Copy full SHA for 74e7cf3
1 file changed
Lib/asyncio/unix_events.py
@@ -74,6 +74,8 @@ def add_signal_handler(self, sig, callback, *args):
74
75
try:
76
signal.signal(sig, self._handle_signal)
77
+ # Set SA_RESTART to limit EINTR occurrences.
78
+ signal.siginterrupt(sig, False)
79
except OSError as exc:
80
del self._signal_handlers[sig]
81
if not self._signal_handlers:
0 commit comments