]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] gh-90622: Do not spawn ProcessPool workers on demand via fork method. (GH...
authorGregory P. Smith <greg@krypto.org>
Sun, 8 May 2022 17:12:46 +0000 (10:12 -0700)
committerGitHub <noreply@github.com>
Sun, 8 May 2022 17:12:46 +0000 (10:12 -0700)
commitb795376a628ae7cc354addbb926d724ebe364fec
tree9dc7492bec2c56107192dbc2caca77ce7e558716
parent1dbf69979fb1f104c7607a412b46d0d24d480b5a
[3.10] gh-90622: Do not spawn ProcessPool workers on demand via fork method. (GH-91598) (#92497)

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