mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-39244: multiprocessing return default start method first on macOS (GH-18625)
(cherry picked from commit db098bc1f0
)
Co-authored-by: idomic <michael.ido@gmail.com>
This commit is contained in:
parent
500cd89ecc
commit
1c88bf8541
3 changed files with 9 additions and 4 deletions
|
@ -257,10 +257,11 @@ class DefaultContext(BaseContext):
|
|||
if sys.platform == 'win32':
|
||||
return ['spawn']
|
||||
else:
|
||||
methods = ['spawn', 'fork'] if sys.platform == 'darwin' else ['fork', 'spawn']
|
||||
if reduction.HAVE_SEND_HANDLE:
|
||||
return ['fork', 'spawn', 'forkserver']
|
||||
else:
|
||||
return ['fork', 'spawn']
|
||||
methods.append('forkserver')
|
||||
return methods
|
||||
|
||||
|
||||
#
|
||||
# Context types for fixed start method
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue