[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN
Andre Merzky
report at bugs.python.org
Sun Jun 26 15:08:33 EDT 2016
Andre Merzky added the comment:
Attached is a patch which seems to resolve the issue for me -- this now triggers the expected `KeyboardInterrupt` in the main thread. For verification one can run the unaltered code as provided by Thomas.
I would very much appreciate feedback, to make sure that the semantics is actually what one would expect. The patch is against the 2.7 branch from https://github.com/python/cpython.git, and I did not test it against any other branch.
I also opened a pull request (https://github.com/python/cpython/pull/39).
----------
keywords: +patch
Added file: http://bugs.python.org/file43544/issue23395.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23395>
_______________________________________
More information about the Python-bugs-list
mailing list