summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-29 00:41:12 (GMT)
committerGitHub <noreply@github.com>2023-09-29 00:41:12 (GMT)
commitbd4518c60c9df356cf5e05b81305e3644ebb5e70 (patch)
tree398e3176f6029b0a6253b0b3ec988982a6046d2c /Misc
parent4e356ad183eeb567783f4a87fd092573da1e9252 (diff)
downloadcpython-bd4518c60c9df356cf5e05b81305e3644ebb5e70.zip
cpython-bd4518c60c9df356cf5e05b81305e3644ebb5e70.tar.gz
cpython-bd4518c60c9df356cf5e05b81305e3644ebb5e70.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2023-09-28-18-53-11.gh-issue-110036.fECxTj.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-09-28-18-53-11.gh-issue-110036.fECxTj.rst b/Misc/NEWS.d/next/Library/2023-09-28-18-53-11.gh-issue-110036.fECxTj.rst
new file mode 100644
index 0000000..ddb11b5
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-09-28-18-53-11.gh-issue-110036.fECxTj.rst
@@ -0,0 +1,5 @@
+On Windows, multiprocessing ``Popen.terminate()`` now catchs
+:exc:`PermissionError` and get the process exit code. If the process is
+still running, raise again the :exc:`PermissionError`. Otherwise, the
+process terminated as expected: store its exit code. Patch by Victor
+Stinner.