summaryrefslogtreecommitdiffstats
path: root/Lib/concurrent
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2012-01-08 06:29:40 (GMT)
committerRoss Lagerwall <rosslagerwall@gmail.com>2012-01-08 06:29:40 (GMT)
commit66e2fb68aca2a2678a327b200e657b761f358bc1 (patch)
treef5037c0da90ca27dd2977d30fb8fb29ae8394431 /Lib/concurrent
parent645a0dd6f79004652c52ae9d7246d1b219772588 (diff)
downloadcpython-66e2fb68aca2a2678a327b200e657b761f358bc1.zip
cpython-66e2fb68aca2a2678a327b200e657b761f358bc1.tar.gz
cpython-66e2fb68aca2a2678a327b200e657b761f358bc1.tar.bz2
Issue #12364: Fix a hang in concurrent.futures.ProcessPoolExecutor.
Diffstat (limited to 'Lib/concurrent')
-rw-r--r--Lib/concurrent/futures/process.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/concurrent/futures/process.py b/Lib/concurrent/futures/process.py
index 8082940..d3bbe2c 100644
--- a/Lib/concurrent/futures/process.py
+++ b/Lib/concurrent/futures/process.py
@@ -213,9 +213,7 @@ def _queue_management_worker(executor_reference,
work_item.future.set_exception(result_item.exception)
else:
work_item.future.set_result(result_item.result)
- continue
- # If we come here, we either got a timeout or were explicitly woken up.
- # In either case, check whether we should start shutting down.
+ # Check whether we should start shutting down.
executor = executor_reference()
# No more work items can be added if:
# - The interpreter is shutting down OR
@@ -234,9 +232,6 @@ def _queue_management_worker(executor_reference,
p.join()
call_queue.close()
return
- else:
- # Start shutting down by telling a process it can exit.
- shutdown_one_process()
del executor
_system_limits_checked = False