]> granicus.if.org Git - python/commit
bpo-31326: ProcessPoolExecutor waits for the call queue thread (#3265)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 1 Sep 2017 22:25:11 +0000 (00:25 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Sep 2017 22:25:11 +0000 (00:25 +0200)
commitb713adf27a76b5df95e3ee5f85f9064a2763ae35
treebac3811accd903d51a7346fb15dad045d7a64ecc
parent97e1b1c81458d2109b2ffed32ffa1eb643a6c3b9
bpo-31326: ProcessPoolExecutor waits for the call queue thread (#3265)

* bpo-31326: ProcessPoolExecutor waits for the call queue thread

concurrent.futures.ProcessPoolExecutor.shutdown() now explicitly
closes the call queue. Moreover, shutdown(wait=True) now also join
the call queue thread, to prevent leaking a dangling thread.

* Fix for shutdown() being called twice.
Lib/concurrent/futures/process.py
Misc/NEWS.d/next/Library/2017-09-01-18-48-06.bpo-31326.TB05tV.rst [new file with mode: 0644]