summaryrefslogtreecommitdiff
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2023-05-17 08:59:45 -0700
committerGitHub <noreply@github.com>2023-05-17 08:59:45 -0700
commitc649df63e0d052044a4660101d5769ff46ae9234 (patch)
treefaeda7da1c52f711202b2f9c9a1f05e90c07bdce /Misc/NEWS.d
parentf7df17394906f2af51afef3c8ccaaab3847b059c (diff)
downloadcpython-git-c649df63e0d052044a4660101d5769ff46ae9234.tar.gz
gh-104372: Cleanup _posixsubprocess `make_inheritable` for async signal safety and no GIL requirement (#104518)
Move all of the Python C API calls into the parent process up front instead of doing PyLong_AsLong and PyErr_Occurred and PyTuple_GET from the post-fork/vfork child process. Much of this was long overdue. We shouldn't have been using PyTuple and PyLong APIs within all of these low level functions anyways.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2023-05-17-08-01-36.gh-issue-104372.jpoWs6.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-05-17-08-01-36.gh-issue-104372.jpoWs6.rst b/Misc/NEWS.d/next/Library/2023-05-17-08-01-36.gh-issue-104372.jpoWs6.rst
new file mode 100644
index 0000000000..c228f503aa
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-05-17-08-01-36.gh-issue-104372.jpoWs6.rst
@@ -0,0 +1 @@
+Refactored the ``_posixsubprocess`` internals to avoid Python C API usage between fork and exec when marking ``pass_fds=`` file descriptors inheritable.