Skip to content

Conversation

@gpshead
Copy link
Member

@gpshead gpshead commented Jan 14, 2026

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)

…orkserver `__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)
@bedevere-bot
Copy link

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

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F143821%2Fmerge

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

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jan 14, 2026
@gpshead gpshead merged commit 480f480 into python:3.13 Jan 14, 2026
73 of 99 checks passed
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