mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00: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
2 changed files with 4 additions and 0 deletions
|
@ -232,6 +232,7 @@ def _queue_management_worker(executor_reference,
|
||||||
# X.
|
# X.
|
||||||
for p in processes:
|
for p in processes:
|
||||||
p.join()
|
p.join()
|
||||||
|
call_queue.close()
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
# Start shutting down by telling a process it can exit.
|
# Start shutting down by telling a process it can exit.
|
||||||
|
|
|
@ -30,6 +30,9 @@ Core and Builtins
|
||||||
Library
|
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
|
- Issue #11603: Fix a crash when __str__ is rebound as __repr__. Patch by
|
||||||
Andreas Stührk.
|
Andreas Stührk.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue