Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
gpshead merged 10 commits intopython:mainfromkulikjak:posix_spawn-close_fds-support
Dec 17, 2023

Conversation

kulikjak
Copy link
Contributor

@kulikjakkulikjak commentedDec 14, 2023
edited by github-actionsbot
Loading

bdraco reacted with hooray emojibdraco reacted with rocket emoji
@kulikjakkulikjak changed the titlegh-113117: Posix spawn close fds supportgh-113117: Support posix_spawn in subprocess.Popen with close_fds=TrueDec 14, 2023
Copy link
Member

@serhiy-storchakaserhiy-storchaka left a comment

Choose a reason for hiding this comment

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

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

gpshead reacted with thumbs up emoji
@gpsheadgpshead added the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelDec 17, 2023
@bedevere-bot

This comment was marked as outdated.

@bedevere-botbedevere-bot removed the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelDec 17, 2023
@gpsheadgpshead added the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelDec 17, 2023
@bedevere-bot
Copy link

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

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

@bedevere-botbedevere-bot removed the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelDec 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 theOptimizations section brief, referring back up to the subprocessmodule.
@gpsheadgpsheadenabled auto-merge (squash)December 17, 2023 21:26
@gpsheadgpshead added type-featureA feature request or enhancement 3.13bugs and security fixes labelsDec 17, 2023
@gpsheadgpshead merged commit2b93f52 intopython:mainDec 17, 2023
ryan-duve pushed a commit to ryan-duve/cpython that referenced this pull requestDec 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 usethem 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 requestFeb 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 usethem 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 requestSep 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 usethem 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>
@vstinner
Copy link
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!

kulikjak reacted with hooray emojigpshead and erlend-aasland reacted with heart emoji

@kulikjak
Copy link
ContributorAuthor

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

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@gpsheadgpsheadgpshead approved these changes

@serhiy-storchakaserhiy-storchakaserhiy-storchaka approved these changes

@erlend-aaslanderlend-aaslandAwaiting requested review from erlend-aaslanderlend-aasland is a code owner

@corona10corona10Awaiting requested review from corona10corona10 is a code owner

Assignees

@gpsheadgpshead

Labels
3.13bugs and security fixestype-featureA feature request or enhancement
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@kulikjak@bedevere-bot@vstinner@gpshead@serhiy-storchaka

[8]ページ先頭

©2009-2025 Movatter.jp