From: Antoine Pitrou Date: Sat, 16 Jul 2011 21:52:02 +0000 (+0200) Subject: Close the call queue in concurrent.futures.ProcessPoolExecutor when X-Git-Tag: v3.2.2rc1~104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b447957c75778145ef8ce46d95d4a780cd0e1ab;p=python Close the call queue in concurrent.futures.ProcessPoolExecutor when shutdown() is called, without waiting for the garbage collector to kick in. --- diff --git a/Lib/concurrent/futures/process.py b/Lib/concurrent/futures/process.py index ff566d3eb3..8082940677 100644 --- a/Lib/concurrent/futures/process.py +++ b/Lib/concurrent/futures/process.py @@ -232,6 +232,7 @@ def _queue_management_worker(executor_reference, # X. for p in processes: p.join() + call_queue.close() return else: # Start shutting down by telling a process it can exit. diff --git a/Misc/NEWS b/Misc/NEWS index 02b59dcf8a..bf33745837 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -30,6 +30,9 @@ Core and Builtins Library ------- +- Close the call queue in concurrent.futures.ProcessPoolExecutor when + shutdown() is called, without waiting for the garbage collector to kick in. + - Issue #11603: Fix a crash when __str__ is rebound as __repr__. Patch by Andreas Stührk.