Close the call queue in concurrent.futures.ProcessPoolExecutor when

shutdown() is called, without waiting for the garbage collector to kick in.
This commit is contained in:
Antoine Pitrou 2011-07-16 23:52:02 +02:00
parent f7f54759b5
commit 0b447957c7
2 changed files with 4 additions and 0 deletions

View 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.

View File

@ -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.