[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

Terry J. Reedy report at bugs.python.org
Sun Jun 26 00:31:00 CEST 2011

Terry J. Reedy <tjreedy at udel.edu> added the comment:

The patch to the multiprocessing code is trivial:
+            del cache[self._job]

The difference in tests is
+        with test.support.operation_timeout(5):
+            p.join()
+        p.join()

Victor, do you agree with the simpler method, depending on faulthandler to catch a hang in the test and fail it? Or is the explicit timeout better?

stage: test needed -> patch review

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list