Fix potential resource leaks in concurrent.futures.ProcessPoolExecutor

by joining all queues and processes when shutdown() is called.
This commit is contained in:
Antoine Pitrou 2011-07-16 01:13:34 +02:00
parent db535957cd
commit d06a065a44
3 changed files with 9 additions and 2 deletions

View file

@ -634,7 +634,8 @@ def test_main():
ThreadPoolAsCompletedTests,
FutureTests,
ProcessPoolShutdownTest,
ThreadPoolShutdownTest)
ThreadPoolShutdownTest,
)
finally:
test.support.reap_children()