]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-110036: multiprocessing Popen.terminate() catches PermissionError (GH-11003...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 Oct 2023 15:44:26 +0000 (08:44 -0700)
committerGitHub <noreply@github.com>
Mon, 2 Oct 2023 15:44:26 +0000 (17:44 +0200)
commita2074911baaa75216a6a3bc78487ee2254f031d5
treefedd170935aeca6031b6b8945b2e2f36bc2e780d
parentaaa8bf18c6e569abb178896a68786ad3857663e9
[3.12] gh-110036: multiprocessing Popen.terminate() catches PermissionError (GH-110037) (#110064)

gh-110036: multiprocessing Popen.terminate() catches PermissionError (GH-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.
(cherry picked from commit bd4518c60c9df356cf5e05b81305e3644ebb5e70)

Co-authored-by: Victor Stinner <vstinner@python.org>
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]