]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] gh-90622: Do not spawn ProcessPool workers on demand via fork method. (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 8 May 2022 18:22:36 +0000 (11:22 -0700)
committerGitHub <noreply@github.com>
Sun, 8 May 2022 18:22:36 +0000 (11:22 -0700)
commit8e523c1151a4a6a1a239238dfd0cdae51e815dfe
treefabe3d7a802fe293810039dc9f2c0e016308e947
parent08907ad687638a7518fd15243f8cba592e94370c
[3.10] gh-90622: Do not spawn ProcessPool workers on demand via fork method. (GH-91598) (GH-92497) (#92499)

Do not spawn ProcessPool workers on demand when they spawn via fork.

This avoids potential deadlocks in the child processes due to forking from
a multithreaded process..
(cherry picked from commit ebb37fc3fdcb03db4e206db017eeef7aaffbae84)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
(cherry picked from commit b795376a628ae7cc354addbb926d724ebe364fec)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/concurrent/futures/process.py
Lib/test/test_concurrent_futures.py
Misc/NEWS.d/next/Library/2022-04-15-22-07-36.gh-issue-90622.0C6l8h.rst [new file with mode: 0644]