Brian Curtin <cur...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue9524>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to