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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiprocessing.get_all_start_methods() wrong default on macOS #83425
Comments
In Python 3.8 the default start method has changed from fork to spawn on macOS. get_all_start_methods() says: "Returns a list of the supported start methods, the first of which is the default." However, it appears to still return fork as default: Python 3.8.1 (default, Dec 22 2019, 03:45:23)
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import multiprocessing
>>> multiprocessing.get_all_start_methods()
['fork', 'spawn', 'forkserver']
>>> Thank you! |
Good catch, Stefen! This seems like we forgot to update multiprocessing.get_all_start_methods() when making the change to make "spawn" the default on macOS. I suggest updating it accordingly. |
Fixed the bug to default any macos into 'spawn' |
Created a new clean PR #62825 |
Fixed Tal's comments, I took the darwin if check out of the reduction.HAVE_SEND_HANDLE, also fixed the test |
Thanks for fixing this, Ido! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: