SIGN IN SIGN UP

bpo-38630: Fix subprocess.Popen.send_signal() race condition (GH-16984)

On Unix, subprocess.Popen.send_signal() now polls the process status.
Polling reduces the risk of sending a signal to the wrong process if
the process completed, the Popen.returncode attribute is still None,
and the pid has been reassigned (recycled) to a new different
process.
V
Victor Stinner committed
e85a305503bf83c5a8ffb3a988dfe7b67461cbee
Parent: ed154c3
Committed by GitHub <noreply@github.com> on 1/15/2020, 4:38:55 PM