Skip to content

[3.14] gh-143706: Fix sys.argv not set during multiprocessing forkserver __main__ preload (GH-143717) - #143763

Merged
gpshead merged 1 commit into
python:3.14from
miss-islington:backport-298d544-3.14
Jan 13, 2026
Merged

gpshead merged 1 commit into
python:3.14from
miss-islington:backport-298d544-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Jan 12, 2026 •

Copy link
Copy Markdown
Contributor

The forkserver was not passing sys.argv to its main() function, causing
sys.argv to be empty during __main__ module import in child processes. This
fixes a non-obvious regression inadvertently introduced by the gh-126631 main
preloading fix.
(cherry picked from commit 298d544)

Co-authored-by: Gregory P. Smith 68491+gpshead@users.noreply.github.com

…er `__main__` preload (pythonGH-143717)

The forkserver was not passing sys.argv to its main() function, causing
sys.argv to be empty during `__main__` module import in child processes. This
fixes a non-obvious regression inadvertently introduced by the pythongh-126631 main
preloading fix.
(cherry picked from commit 298d544)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants