]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-90622: Do not spawn ProcessPool workers on demand via fork method. (#91598)
authorGregory P. Smith <greg@krypto.org>
Sun, 8 May 2022 16:20:34 +0000 (09:20 -0700)
committerGitHub <noreply@github.com>
Sun, 8 May 2022 16:20:34 +0000 (09:20 -0700)
commitebb37fc3fdcb03db4e206db017eeef7aaffbae84
tree11824a40e84b9841d17040751a98ec4576fda4d9
parenta84a56d80fa3d9a5909d074bbcd2efff7ef8f1b7
gh-90622: Do not spawn ProcessPool workers on demand via fork method. (#91598)

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.
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]