]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-90622: Do not spawn ProcessPool workers on demand via fork method. (GH-91598)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 8 May 2022 17:14:14 +0000 (10:14 -0700)
committerGitHub <noreply@github.com>
Sun, 8 May 2022 17:14:14 +0000 (10:14 -0700)
commit4270b7927de2260f5f1442bb90f788e9ad25ce9c
treeedf7487e853bbef369d1eb8f0815aaa281b169b4
parent5917e71017af916e4e03953794ec85f0381d8625
gh-90622: Do not spawn ProcessPool workers on demand via fork method. (GH-91598) (#92495)

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]