Your IP : 216.73.216.213
�
��f� c @ s d Z d d l m Z m Z d d l Z d d l Z d d l Z d d l Z e e j e j � Z d d � Z
e e
� Z e j j
j Z e e j f e _ e j e _ e d k re e d � s� e d � e d � n e j d
d e j d � Z d e d <x qn d S( uY Script 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 ( u wintypesu WINFUNCTYPENc C s2 | t j k r n | t j k r$ n
t d � d S( u8 Handle a sig event and return 0 to terminate the processu
UNKNOWN EVENTi ( u signalu CTRL_C_EVENTu CTRL_BREAK_EVENTu print( u sig( ( u= /opt/alt/python33/lib64/python3.3/test/win_console_handler.pyu
_ctrl_handler s
u
_ctrl_handleru __main__i u# Unable to add SetConsoleCtrlHandleri����i����( u __doc__u ctypesu wintypesu WINFUNCTYPEu signalu mmapu sysu BOOLu DWORDu HandlerRoutineu
_ctrl_handleru ctrl_handleru windllu kernel32u SetConsoleCtrlHandleru argtypesu restypeu __name__u printu exitu argvu m( ( ( u= /opt/alt/python33/lib64/python3.3/test/win_console_handler.pyu <module> s&