diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-07-16 21:52:02 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-07-16 21:52:02 (GMT) |
commit | 0b447957c75778145ef8ce46d95d4a780cd0e1ab (patch) | |
tree | 2eafee8166f17545f2f11ead740ab6c03d9c373c | |
parent | f7f54759b5f81cc011e987746ed3edd7fcc96d21 (diff) | |
download | cpython-0b447957c75778145ef8ce46d95d4a780cd0e1ab.zip cpython-0b447957c75778145ef8ce46d95d4a780cd0e1ab.tar.gz cpython-0b447957c75778145ef8ce46d95d4a780cd0e1ab.tar.bz2 |
Close the call queue in concurrent.futures.ProcessPoolExecutor when
shutdown() is called, without waiting for the garbage collector to kick in.
-rw-r--r-- | Lib/concurrent/futures/process.py | 1 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Lib/concurrent/futures/process.py b/Lib/concurrent/futures/process.py index ff566d3..8082940 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. @@ -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. |