]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-110036: multiprocessing Popen.terminate() catches PermissionError (#110037)
authorVictor Stinner <vstinner@python.org>
Fri, 29 Sep 2023 00:41:12 +0000 (02:41 +0200)
committerGitHub <noreply@github.com>
Fri, 29 Sep 2023 00:41:12 +0000 (02:41 +0200)
commitbd4518c60c9df356cf5e05b81305e3644ebb5e70
tree398e3176f6029b0a6253b0b3ec988982a6046d2c
parent4e356ad183eeb567783f4a87fd092573da1e9252
gh-110036: multiprocessing Popen.terminate() catches PermissionError (#110037)

On Windows, multiprocessing Popen.terminate() now catchs
PermissionError and get the process exit code. If the process is
still running, raise again the PermissionError. Otherwise, the
process terminated as expected: store its exit code.
Lib/multiprocessing/popen_spawn_win32.py
Lib/test/_test_multiprocessing.py
Misc/NEWS.d/next/Library/2023-09-28-18-53-11.gh-issue-110036.fECxTj.rst [new file with mode: 0644]