]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-90622: Prevent max_tasks_per_child use with a fork mp_context. (#91587)
authorGregory P. Smith <greg@krypto.org>
Fri, 6 May 2022 07:04:53 +0000 (00:04 -0700)
committerGitHub <noreply@github.com>
Fri, 6 May 2022 07:04:53 +0000 (00:04 -0700)
commitfa4f0a134e7911b2494ea9866c8a49ff446f9d6c
tree4890fee63ed702f2b7d05f554d56c8757f6c0c4e
parent2b563f1ad31af0bb0a9947e6f1f76e58dbf170f0
gh-90622: Prevent max_tasks_per_child use with a fork mp_context. (#91587)

Prevent `max_tasks_per_child` use with a "fork" mp_context to avoid deadlocks.

Also defaults to "spawn" when no mp_context is supplied for safe convenience.
Doc/library/concurrent.futures.rst
Lib/concurrent/futures/process.py
Lib/test/test_concurrent_futures.py
Misc/NEWS.d/next/Library/2022-04-15-18-32-38.gh-issue-90622.WQjFDe.rst [new file with mode: 0644]