]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104372: Cleanup _posixsubprocess `make_inheritable` for async signal safety and...
authorGregory P. Smith <greg@krypto.org>
Wed, 17 May 2023 15:59:45 +0000 (08:59 -0700)
committerGitHub <noreply@github.com>
Wed, 17 May 2023 15:59:45 +0000 (08:59 -0700)
commitc649df63e0d052044a4660101d5769ff46ae9234
treefaeda7da1c52f711202b2f9c9a1f05e90c07bdce
parentf7df17394906f2af51afef3c8ccaaab3847b059c
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.
Misc/NEWS.d/next/Library/2023-05-17-08-01-36.gh-issue-104372.jpoWs6.rst [new file with mode: 0644]
Modules/_posixsubprocess.c