Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/test/__pycache__/win_console_handler.cpython-38.pyc
U

>��g��@s�dZddlmZmZddlZddlZddlZddlZeejej�Z	dd�Z
e	e
�Zejj
jZe	ejfe_eje_edkr�eed�s�ed�ed	�e�d	dejd�Zded<q�dS)
aYScript 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.
�)�wintypes�WINFUNCTYPENcCs$|tjkrn|tjkrntd�dS)z8Handle a sig event and return 0 to terminate the processz
UNKNOWN EVENTr)�signalZCTRL_C_EVENTZCTRL_BREAK_EVENT�print)�sig�r�7/opt/cppython/lib/python3.8/test/win_console_handler.py�
_ctrl_handlers

r	�__main__�z#Unable to add SetConsoleCtrlHandler���)�__doc__ZctypesrrrZmmap�sysZBOOLZDWORDZHandlerRoutiner	Zctrl_handlerZwindllZkernel32ZSetConsoleCtrlHandlerZargtypesZrestype�__name__r�exit�argv�mrrrr�<module>s$





F1le Man4ger