mirror of https://github.com/python/cpython
d481d4b767
gh-87744: fix waitpid race while calling send_signal in asyncio (GH-121126)
asyncio earlier relied on subprocess module to send signals to the process, this has some drawbacks one being that subprocess module unnecessarily calls waitpid on child processes and hence it races with asyncio implementation which internally uses child watchers. To mitigate this, now asyncio sends signals directly to the process without going through the subprocess on non windows systems. On Windows it fallbacks to subprocess module handling but on windows there are no child watchers so this issue doesn't exists altogether.
(cherry picked from commit
|
||
---|---|---|
.. | ||
__init__.py | ||
__main__.py | ||
base_events.py | ||
base_futures.py | ||
base_subprocess.py | ||
base_tasks.py | ||
constants.py | ||
coroutines.py | ||
events.py | ||
exceptions.py | ||
format_helpers.py | ||
futures.py | ||
locks.py | ||
log.py | ||
mixins.py | ||
proactor_events.py | ||
protocols.py | ||
queues.py | ||
runners.py | ||
selector_events.py | ||
sslproto.py | ||
staggered.py | ||
streams.py | ||
subprocess.py | ||
taskgroups.py | ||
tasks.py | ||
threads.py | ||
timeouts.py | ||
transports.py | ||
trsock.py | ||
unix_events.py | ||
windows_events.py | ||
windows_utils.py |