Staging
v0.5.1
https://github.com/python/cpython
Revision e5aa886b4449c9b2db93591c58511ea3620c9b67 authored by Brian Curtin on 02 April 2010, 23:26:06 UTC, committed by Brian Curtin on 02 April 2010, 23:26:06 UTC
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.
1 parent a04c7a0
History
Tip revision: e5aa886b4449c9b2db93591c58511ea3620c9b67 authored by Brian Curtin on 02 April 2010, 23:26:06 UTC
Implement #1220212. Add os.kill support for Windows.
Tip revision: e5aa886
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.bzrignore -rw-r--r-- 476 bytes
.hgignore -rw-r--r-- 672 bytes
.hgtags -rw-r--r-- 3.9 KB
LICENSE -rw-r--r-- 13.8 KB
Makefile.pre.in -rw-r--r-- 39.6 KB
README -rw-r--r-- 52.9 KB
configure -rwxr-xr-x 740.4 KB
configure.in -rw-r--r-- 118.5 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 32.3 KB
setup.py -rw-r--r-- 83.3 KB

README

back to top