diff options
author | Gregory P. Smith <greg@krypto.org> | 2022-05-08 16:20:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-08 16:20:34 (GMT) |
commit | ebb37fc3fdcb03db4e206db017eeef7aaffbae84 (patch) | |
tree | 11824a40e84b9841d17040751a98ec4576fda4d9 /Misc | |
parent | a84a56d80fa3d9a5909d074bbcd2efff7ef8f1b7 (diff) | |
download | cpython-ebb37fc3fdcb03db4e206db017eeef7aaffbae84.zip cpython-ebb37fc3fdcb03db4e206db017eeef7aaffbae84.tar.gz cpython-ebb37fc3fdcb03db4e206db017eeef7aaffbae84.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-04-15-22-07-36.gh-issue-90622.0C6l8h.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-04-15-22-07-36.gh-issue-90622.0C6l8h.rst b/Misc/NEWS.d/next/Library/2022-04-15-22-07-36.gh-issue-90622.0C6l8h.rst new file mode 100644 index 0000000..5db0a1b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-04-15-22-07-36.gh-issue-90622.0C6l8h.rst @@ -0,0 +1,4 @@ +Worker processes for :class:`concurrent.futures.ProcessPoolExecutor` are no +longer spawned on demand (a feature added in 3.9) when the multiprocessing +context start method is ``"fork"`` as that can lead to deadlocks in the +child processes due to a fork happening while threads are running. |