◐ Shell
clean mode source ↗

gh-113117: Support posix_spawn in subprocess.Popen with close_fds=True by kulikjak · Pull Request #113118 · python/cpython

added 2 commits

December 14, 2023 15:52

@kulikjak kulikjak changed the title gh-113117: Posix spawn close fds support gh-113117: Support posix_spawn in subprocess.Popen with close_fds=True

Dec 14, 2023

@kulikjak

serhiy-storchaka

Gives a more useful description and mentions that it can be turned off but that we'd like to hear from anyone doing so.
(the joys of using the github web editor)
This describes the module changes in module sections and makes the
Optimizations section brief, referring back up to the subprocess
module.

ryan-duve pushed a commit to ryan-duve/cpython that referenced this pull request

Dec 26, 2023
…ds=True (python#113118)

Add support for `os.POSIX_SPAWN_CLOSEFROM` and
`posix_spawn_file_actions_addclosefrom_np` and have the `subprocess` module use
them when available.  This means `posix_spawn` can now be used in the default
`close_fds=True` situation on many platforms.

Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>

aisk pushed a commit to aisk/cpython that referenced this pull request

Feb 11, 2024
…ds=True (python#113118)

Add support for `os.POSIX_SPAWN_CLOSEFROM` and
`posix_spawn_file_actions_addclosefrom_np` and have the `subprocess` module use
them when available.  This means `posix_spawn` can now be used in the default
`close_fds=True` situation on many platforms.

Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>

Glyphack pushed a commit to Glyphack/cpython that referenced this pull request

Sep 2, 2024
…ds=True (python#113118)

Add support for `os.POSIX_SPAWN_CLOSEFROM` and
`posix_spawn_file_actions_addclosefrom_np` and have the `subprocess` module use
them when available.  This means `posix_spawn` can now be used in the default
`close_fds=True` situation on many platforms.

Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>

@lazka lazka mentioned this pull request

Sep 21, 2025