[issue9524] Document CTRL_C_EVENT and CTRL_BREAK_EVENT usage on Windows

Brian Curtin report at bugs.python.org
Thu Aug 5 20:34:01 CEST 2010


Brian Curtin <curtin at acm.org> added the comment:

Those two signals are only intended to work with os.kill -- they are specific to the GenerateConsoleCtrlEvent function in Modules/posixmodule.c. I'll have to change the documentation to note that.

If you want to send those events to other processes, have a look at os.kill and some example usage in Lib/test/test_os.py and Lib/test/win_console_handler.py. This also needs better documentation.

----------
assignee:  -> brian.curtin
components: +Documentation
nosy: +brian.curtin
stage:  -> needs patch
title: CTRL_C_EVENT and CTRL_BREAK_EVENT cannot be registered by signal.signal() method on windows -> Document CTRL_C_EVENT and CTRL_BREAK_EVENT usage on Windows
versions: +Python 3.2

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


More information about the Python-bugs-list mailing list