cpython/Lib/multiprocessing
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
..
dummy
__init__.py
connection.py [3.12] gh-109370: Fix unexpected traceback output in test_concurrent_futures (GH-109780) (GH-111934) 2023-11-10 07:17:02 +00:00
context.py gh-84559: Remove the new multiprocessing warning, too disruptive. (#101551) 2023-02-03 15:20:46 -08:00
forkserver.py [3.12] gh-107963: Fix set_forkserver_preload to check the type of given list (GH-107965) (#107975) 2023-08-15 16:56:53 +02:00
heap.py
managers.py [3.12] gh-101225: Increase the socket backlog when creating a multiprocessing.connection.Listener (GH-113567) (#114018) 2024-01-14 16:29:15 +01:00
pool.py Fix typo in exception message in multiprocessing.pool (#99900) 2022-11-30 20:57:28 +05:30
popen_fork.py
popen_forkserver.py
popen_spawn_posix.py
popen_spawn_win32.py [3.12] gh-113009: Fix multiprocessing Process.terminate() on Windows (GH-113128) (#113177) 2023-12-15 15:21:02 +00:00
process.py gh-104536: Improve multiprocessing.process._cleanup logic (#104537) 2023-05-22 03:48:57 +00:00
queues.py [3.12] gh-114440: Close writer pipe in multiprocessing.Queue, not concurrent.futures (GH-114489) 2024-01-24 13:21:10 +01:00
reduction.py
resource_sharer.py [3.12] gh-101225: Increase the socket backlog when creating a multiprocessing.connection.Listener (GH-113567) (#114018) 2024-01-14 16:29:15 +01:00
resource_tracker.py [3.12] gh-109593: Fix reentrancy issue in multiprocessing resource_tracker (GH-109629) (#109898) 2023-10-02 17:37:40 +02:00
shared_memory.py bpo-40882: Fix a memory leak in SharedMemory on Windows (GH-20684) 2022-11-25 17:39:48 +00:00
sharedctypes.py
spawn.py [3.12] More actionable error message when spawn is incorrectly used. (GH-102203) (#107990) 2023-08-16 14:22:22 +02:00
synchronize.py [3.12] gh-108520: Fix bad fork detection in nested multiprocessing use case (GH-108568) (#108691) 2023-08-30 23:18:49 +02:00
util.py [3.12] gh-113421: Fix multiprocessing logger for "%(filename)s" (GH-113423) (GH-113450) 2023-12-24 10:23:32 +00:00