]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-84559: Change the multiprocessing start method default to `forkserver` (GH-101556)
authorGregory P. Smith <greg@krypto.org>
Thu, 26 Sep 2024 23:57:19 +0000 (16:57 -0700)
committerGitHub <noreply@github.com>
Thu, 26 Sep 2024 23:57:19 +0000 (16:57 -0700)
commitb65f2cdfa77d8d12c213aec663ddaaa30d75a4b2
tree995b44874413c1753fb8cdae59fc5f795e52c1a1
parent83e5dc0f4d0d8d71288f162840b36f210fb03abf
gh-84559: Change the multiprocessing start method default to `forkserver` (GH-101556)

Change the default multiprocessing start method away from fork to forkserver or spawn on the remaining platforms where it was fork.  See the issue for context.  This makes the default far more thread safe (other than for people spawning threads at import time... - don't do that!).

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Doc/library/concurrent.futures.rst
Doc/library/multiprocessing.rst
Doc/whatsnew/3.14.rst
Lib/multiprocessing/context.py
Lib/test/_test_multiprocessing.py
Lib/test/support/__init__.py
Misc/NEWS.d/next/Library/2024-09-19-00-09-48.gh-issue-84559.IrxvQe.rst [new file with mode: 0644]