| Server IP : 121.121.20.254 / Your IP : 216.73.217.64 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/test/__pycache__/ |
Upload File : |
R
>lqj� c � � Q s ] QHGsGs ] PHs] PHs] PHs] PHs\ \O \O 2 s Q s
\ \
2 s\O O O s\ \O 1\m \O \m \Q6X cM \ \]2 % f \ Q2 \ P2 \O
P]\O( ]* 2 s]\] $ J P! )aY 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.
)�wintypes�WINFUNCTYPEc �~ � U [ O 6X c ] ! U [ O 6X c ] ! [ Q2 ] ! )z8Handle a sig event and return 0 to terminate the processz
UNKNOWN EVENT)�signal�CTRL_C_EVENT�CTRL_BREAK_EVENT�print)�sigs &�-C:\Python315\\Lib\test\win_console_handler.py�
_ctrl_handlerr
s= � �
�f�!�!�!��
�
��'�'� '��
� �o��� �__main__z#Unable to add SetConsoleCtrlHandler)�__doc__�ctypesr r r �mmap�sys�BOOL�DWORD�HandlerRoutiner
�ctrl_handler�windll�kernel32�SetConsoleCtrlHandler�argtypes�restype�__name__r �exit�argv�m� r r �<module>r s� ��� )�
�
� �
� �X�]�]�H�N�N�;��
� �m�,�� �
�
�.�.�D�D� �"0�(�-�-�!@� � � (�
�
� � ��z�� ��q�1�1�
�3�4��R��
� � �"�a����!��%�A��A�a�D� �� r