]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-88110: Clear concurrent.futures.thread._threads_queues after fork to avoid joining...
authorAndrei Bodrov <Drino@users.noreply.github.com>
Fri, 22 Nov 2024 16:20:34 +0000 (19:20 +0300)
committerGitHub <noreply@github.com>
Fri, 22 Nov 2024 16:20:34 +0000 (18:20 +0200)
commit1848ce61f349533ae5892a8c24c2e0e3c364fc8a
tree47491803ee64856ca9c662d0d8f306eade05c0dd
parent7725c0371a93be3ccfaff4871014a80bdf0ea274
gh-88110: Clear concurrent.futures.thread._threads_queues after fork to avoid joining parent process' threads (GH-126098)

Threads are gone after fork, so clear the queues too. Otherwise the
child process (here created via multiprocessing.Process) crashes on
interpreter exit.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/concurrent/futures/thread.py
Lib/test/test_concurrent_futures/test_thread_pool.py
Misc/NEWS.d/next/Library/2023-02-15-23-54-42.gh-issue-88110.KU6erv.rst [new file with mode: 0644]