summaryrefslogtreecommitdiffstats
path: root/Lib/test/win_console_handler.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix a failing test on an apparently slow Windows buildbot.Brian Curtin2010-04-051-1/+2
| | | | | | | On slower Windows machines, waiting 0.1 seconds can sometimes not be enough for a subprocess to start and be ready to accept signals, causing the test to fail. One buildbot is also choking on input()/EOFError so that was changed to not depend on input.
* set svn:eol-style on new fileBenjamin Peterson2010-04-021-42/+42
|
* Implement #1220212. Add os.kill support for Windows.Brian Curtin2010-04-021-0/+42
os.kill takes one of two newly added signals, CTRL_C_EVENT and CTRL_BREAK_EVENT, or any integer value. The events are a special case which work with subprocess console applications which implement a special console control handler. Any other value but those two will cause os.kill to use TerminateProcess, outright killing the process. This change adds win_console_handler.py, which is a script to implement SetConsoleCtrlHandler and applicable handler function, using ctypes. subprocess also gets another attribute which is a necessary flag to creationflags in Popen in order to send the CTRL events.