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-113119 fix environment handling in subprocess.Popen when posix_spawn is used#113120

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 5 commits intopython:mainfromkulikjak:posix_spawn-fix-environment
Dec 17, 2023

Conversation

kulikjak
Copy link
Contributor

@kulikjakkulikjak commentedDec 14, 2023
edited by gpshead
Loading

With this change, posix_spawn call can behave similarly to execv with regards to environments when used in subprocess functions.
Copy link
Member

@gpsheadgpshead left a comment

Choose a reason for hiding this comment

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

The code looks good, can you add a NEWS entry (step 8 inhttps://devguide.python.org/) and mention theos.posix_spawn feature of acceptingenv=None to mean "use the current process environment" inDoc/whatsnew/3.13.rst?

@gpsheadgpshead self-assigned thisDec 15, 2023
@kulikjak
Copy link
ContributorAuthor

Thanks for the review. I added a NEWS fragment and whatsnew entry as per your suggestion.

@gpsheadgpsheadenabled auto-merge (squash)December 17, 2023 04:54
@gpsheadgpsheadenabled auto-merge (squash)December 17, 2023 04:56
@gpsheadgpshead merged commit48c907a intopython:mainDec 17, 2023
aisk pushed a commit to aisk/cpython that referenced this pull requestFeb 11, 2024
…ix_spawn is used (python#113120)* Allow posix_spawn to inherit environment form parent environ variable.With this change, posix_spawn call can behave similarly to execv with regards to environments when used in subprocess functions.
Glyphack pushed a commit to Glyphack/cpython that referenced this pull requestSep 2, 2024
…ix_spawn is used (python#113120)* Allow posix_spawn to inherit environment form parent environ variable.With this change, posix_spawn call can behave similarly to execv with regards to environments when used in subprocess functions.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@gpsheadgpsheadgpshead approved these changes

Assignees

@gpsheadgpshead

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

subprocess.Popen can pass incomplete environment when posix_spawn is used
2 participants
@kulikjak@gpshead

[8]ページ先頭

©2009-2025 Movatter.jp