]> granicus.if.org Git - python/commitdiff
Close the call queue in concurrent.futures.ProcessPoolExecutor when
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 16 Jul 2011 21:52:02 +0000 (23:52 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 16 Jul 2011 21:52:02 +0000 (23:52 +0200)
shutdown() is called, without waiting for the garbage collector to kick in.

Lib/concurrent/futures/process.py
Misc/NEWS

index ff566d3eb3e8c31cb537fe0b9f1542e281ea7c98..80829406774a7e85b9d64ac18d01c22a55b3dacc 100644 (file)
@@ -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.
index 02b59dcf8a290b587427647d789cdef7e3f5b65a..bf337458375354c6c47ce03caaff04c81f2a03c3 100644 (file)
--- 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.