FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

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

/ cpython Public

gh-113117: Support posix_spawn in subprocess.Popen with close_fds=True - #113118

Merged
gpshead merged 10 commits into
python:mainfrom
kulikjak:posix_spawn-close_fds-support
Dec 17, 2023
Merged

gh-113117: Support posix_spawn in subprocess.Popen with close_fds=True#113118
gpshead merged 10 commits into
python:mainfrom
kulikjak:posix_spawn-close_fds-support

Conversation

kulikjak commented Dec 14, 2023
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Contributor

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

serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM. Please add a NEWS and What's New entries.

Comment thread Modules/posixmodule.c Outdated
Comment thread Modules/posixmodule.c
gpshead added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 17, 2023

This comment was marked as outdated.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 17, 2023
gpshead added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 17, 2023

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @gpshead for commit cb496e3 🤖

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 17, 2023
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.
gpshead enabled auto-merge (squash) December 17, 2023 21:26
gpshead added type-feature A feature request or enhancement 3.13 bugs and security fixes labels Dec 17, 2023
gpshead merged commit 2b93f52 into python:main Dec 17, 2023
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>

Copy link
Copy Markdown
Member

I just discover this optimization by reading What's New in Python 3.13. Congrats @kulikjak, it's a great step forward! I didn't know that Linux supported this feature!

Copy link
Copy Markdown
Contributor Author

^^ Thanks! Though I am not sure how much Linux will benefit, considering it has vfork.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.13 bugs and security fixes type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL