mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
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:
parent
f7f54759b5
commit
0b447957c7
@ -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.
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user