]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40550: Fix time-of-check/time-of-action issue in subprocess.Popen.send_signal...
authorFilipe Laíns <lains@archlinux.org>
Sat, 21 Nov 2020 09:22:08 +0000 (09:22 +0000)
committerGitHub <noreply@github.com>
Sat, 21 Nov 2020 09:22:08 +0000 (01:22 -0800)
commit01a202ab6b0ded546e47073db6498262086c52e9
tree93560f437ba651e66bbed88130a2aa90a36a3be5
parent31729366e2bc09632e78f3896dbce0ae64914f28
bpo-40550: Fix time-of-check/time-of-action issue in subprocess.Popen.send_signal. (GH-20010)

send_signal() now swallows the exception if the process it thought was still alive winds up not to exist anymore (always a plausible race condition despite the checks).

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/subprocess.py
Lib/test/test_subprocess.py
Misc/NEWS.d/next/Library/2020-05-08-21-30-54.bpo-40550.i7GWkb.rst [new file with mode: 0644]