mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[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 commitebb37fc3fd) Co-authored-by: Gregory P. Smith <greg@krypto.org> (cherry picked from commitb795376a62) Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Gregory P. Smith <greg@krypto.org>
This commit is contained in:
parent
08907ad687
commit
8e523c1151
3 changed files with 48 additions and 10 deletions
|
|
@ -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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue