Skip to content

gh-155717: use spawn as the default start method for read-only filesystems - #155827

Open
picnixz wants to merge 5 commits into
python:mainfrom
picnixz:fix/multiprocessing/forkserver-writeable-tempdir-155717
Open

gh-155717: use spawn as the default start method for read-only filesystems#155827
picnixz wants to merge 5 commits into
python:mainfrom
picnixz:fix/multiprocessing/forkserver-writeable-tempdir-155717

Conversation

@picnixz

@picnixz picnixz commented Aug 15, 2026

Copy link
Copy Markdown
Member

@picnixz

picnixz commented Aug 15, 2026

Copy link
Copy Markdown
Member Author

I'll merge this after #149597 which I forgot to add tests for. I'm doing it now.

Comment thread Lib/test/_test_multiprocessing.py Outdated
Comment thread Lib/test/_test_multiprocessing.py
Comment thread Lib/test/_test_multiprocessing.py Outdated

@gpshead gpshead 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.

one comment wording suggestion, good overall.

tempfile was a deferred import presumably for startup time reasons but it's going to be used at import time now so moving it back to be up top makes sense.

Comment thread Lib/multiprocessing/util.py Outdated
@picnixz

picnixz commented Aug 15, 2026

Copy link
Copy Markdown
Member Author

tempfile was a deferred import presumably for startup time reasons but it's going to be used at import time now so moving it back to be up top makes sense.

Yes. That's was only for those reasons but I think we can just make it a regular one. It doesn't hurt.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants