tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
S\¬Qc@s
dZddlmZmZddlZddlZddlZddlZeejejƒZ    d„Z
e    e
ƒZ ej j jZe    ejfe_eje_edkree dƒsÐdGHedƒnejddejdƒZded    <x erqùWndS(
sYScript used to test os.kill on Windows, for issue #1220212
 
This script is started as a subprocess in test_os and is used to test the
CTRL_C_EVENT and CTRL_BREAK_EVENT signals, which requires a custom handler
to be written into the kill target.
 
See http://msdn.microsoft.com/en-us/library/ms685049%28v=VS.85%29.aspx for a
similar example in C.
iÿÿÿÿ(twintypest WINFUNCTYPENcCs-|tjkrn|tjkr$ndGHdS(s8Handle a sig event and return 0 to terminate the processs UNKNOWN EVENTi(tsignalt CTRL_C_EVENTtCTRL_BREAK_EVENT(tsig((s`/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/win_console_handler.pyt _ctrl_handlers t__main__is#Unable to add SetConsoleCtrlHandlert1i(t__doc__tctypesRRRtmmaptsystBOOLtDWORDtHandlerRoutineRt ctrl_handlertwindlltkernel32tSetConsoleCtrlHandlertargtypestrestypet__name__texittargvtmtTrue(((s`/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/win_console_handler.pyt<module>    s&