[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt
Andrey Vlasovskikh
report at bugs.python.org
Tue Apr 6 20:32:05 CEST 2010
Andrey Vlasovskikh <andrey.vlasovskikh at gmail.com> added the comment:
Here is a patch that fixes this problem. Basically, it catches all the BaseExceptions that could happen during: a) getting a task from the `inqueue`, b) calling a user function, c) putting a task into the `outqueue`. The exception handler puts the exception to the `outqueue`.
It can be cleanly applied on top of revision 78790.
----------
keywords: +patch
Added file: http://bugs.python.org/file16785/fix-sigint.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8296>
_______________________________________
More information about the Python-bugs-list
mailing list