cpython/Lib/concurrent/futures
Petr Viktorin c912bc3ed4
[3.12] gh-114440: Close writer pipe in multiprocessing.Queue, not concurrent.futures (GH-114489)
This was left out of the 3.12 backport for three related issues:
- gh-107219 (which adds `self.call_queue._writer.close()` to `_ExecutorManagerThread` in `concurrent.futures`)
- gh-109370 (which changes this to be only called on Windows)
- gh-109047 (which moves the call to `multiprocessing.Queue`'s `_terminate_broken`)

Without this change, ProcessPoolExecutor sometimes hangs on Windows
when a worker process is terminated.

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-01-24 13:21:10 +01:00
..
__init__.py bpo-46522: fix concurrent.futures and io AttributeError messages (GH-30887) 2022-02-23 02:25:00 +02:00
_base.py gh-95166: cancel map waited on future on timeout (GH-95169) 2022-07-28 11:20:10 +02:00
process.py [3.12] gh-114440: Close writer pipe in multiprocessing.Queue, not concurrent.futures (GH-114489) 2024-01-24 13:21:10 +01:00
thread.py [3.12] gh-102024: Reduced _idle_semaphore.release calls (GH-102025) (#104959) 2023-05-26 06:21:15 +00:00