Skip to content

Commit b494a16

Browse files
committed
revert to fork multiprocessing
1 parent 0dc1e51 commit b494a16

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Lib/multiprocessing/context.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -320,12 +320,7 @@ def _check_available(self):
320320
'spawn': SpawnContext(),
321321
'forkserver': ForkServerContext(),
322322
}
323-
if sys.platform == 'darwin':
324-
# bpo-33725: running arbitrary code after fork() is no longer reliable
325-
# on macOS since macOS 10.14 (Mojave). Use spawn by default instead.
326-
_default_context = DefaultContext(_concrete_contexts['spawn'])
327-
else:
328-
_default_context = DefaultContext(_concrete_contexts['fork'])
323+
_default_context = DefaultContext(_concrete_contexts['fork'])
329324

330325
else:
331326

0 commit comments

Comments
 (0)