[Python-checkins] cpython (3.2): Close the call queue in concurrent.futures.ProcessPoolExecutor when
antoine.pitrou
python-checkins at python.org
Sat Jul 16 23:58:00 CEST 2011
http://hg.python.org/cpython/rev/362556f980ac
changeset: 71378:362556f980ac
branch: 3.2
parent: 71367:59a536cace4c
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat Jul 16 23:52:02 2011 +0200
summary:
Close the call queue in concurrent.futures.ProcessPoolExecutor when
shutdown() is called, without waiting for the garbage collector to kick in.
files:
Lib/concurrent/futures/process.py | 1 +
Misc/NEWS | 3 +++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Lib/concurrent/futures/process.py b/Lib/concurrent/futures/process.py
--- a/Lib/concurrent/futures/process.py
+++ b/Lib/concurrent/futures/process.py
@@ -232,6 +232,7 @@
# X.
for p in processes:
p.join()
+ call_queue.close()
return
else:
# Start shutting down by telling a process it can exit.
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -30,6 +30,9 @@
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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list