[issue11361] suggestion for os.kill(pid,CTRL_C_EVENT) in tests

STINNER Victor report at bugs.python.org
Mon May 2 00:25:12 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

Oh, if the process is able to handle CTRL+c on Windows, it means that faulthandler.register() could be used on Windows. While developing the faulthandler module, I tried all signals but I was only able to handle SIGSEGV, SIGABRT, SIGBUS and SIGILL on Windows. And all of these signals are reserved to faulthandler.enable() function. So faulthandler.register() is just not compiled on Windows.

If SetConsoleCtrlHandler() is really useful, we should maybe add something to the signal module to give access to this function.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11361>
_______________________________________


More information about the Python-bugs-list mailing list