SIGN IN SIGN UP

gh-87744: fix waitpid race while calling send_signal in asyncio (#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.
K
Kumar Aditya committed
bd473aa598c5161521a7018896dc124728214a6c
Parent: 1a84bdc
Committed by GitHub <noreply@github.com> on 7/1/2024, 4:47:36 AM