Ross Lagerwall <rosslagerw...@gmail.com> added the comment: Retrieving the result of a future after the executor has been shut down can cause a hang.
It seems like this regression was introduced in a76257a99636. This regression exists only for ProcessPoolExecutor. The problem is that even if there are pending work items, the processes are still signaled to shut down leaving the pending work items permanently unfinished. The patch simply removes the call to shut down the processes when there are pending work items. Attached is a patch. ---------- keywords: +patch nosy: +rosslagerwall Added file: http://bugs.python.org/file24128/issue.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12364> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com