Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.10/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.10/test/__pycache__/signalinterproctester.cpython-310.pyc
o

�9j�
�@svddlZddlZddlZddlZddlZddlZddlmZGdd�de�Z	Gdd�dej
�Zedkr9e�
�dSdS)�N)�supportc@seZdZdS)�SIGUSR1ExceptionN)�__name__�
__module__�__qualname__�rr�1/usr/lib/python3.10/test/signalinterproctester.pyr
src@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�InterProcessSignalTestscCsdddd�|_dS)Nr��SIGHUP�SIGUSR1�SIGALRM��got_signals)�selfrrr�setUpszInterProcessSignalTests.setUpcCs|jdd7<dS)Nr�r�r�signum�framerrr�sighup_handlersz&InterProcessSignalTests.sighup_handlercCs|jdd7<t�)Nrr)rrrrrr�sigusr1_handlersz'InterProcessSignalTests.sigusr1_handlercCsf|dur|��tj}t��|}t��|kr(|j|rdSt��t��|ks|�d||f�dS)Nz'signal %s not received after %s seconds)	�waitr�
SHORT_TIMEOUT�time�	monotonicr�signal�pause�fail)r�child�signame�timeout�deadlinerrr�wait_signals
�
�z#InterProcessSignalTests.wait_signalcCs$d||f}tjdd|g}t�|�S)Nz)import os, signal; os.kill(%s, signal.%s)z-Iz-c)�sys�
executable�
subprocess�Popen)r�pidr �code�argsrrr�subprocess_send_signal*s
z.InterProcessSignalTests.subprocess_send_signalc	Cs�t�tj|j�t�tj|j�t�tjtj�t�tjtj�t	t
���}|�|d��}|�
|d�Wd�n1s=wY|�|jdddd��|�t��$|�|d��}|�
|d�Wd�n1sjwYWd�n1sywY|�|jdddd��|�|d��}|��Wd�n1s�wYz3|�t��t�d�|�
dd�Wd�n1s�wY|�|jdddd��Wt�d�dSt�d�w)Nrrrr
r�SIGUSR2r
)rrrrrr,�SIG_IGNr
�default_int_handler�str�os�getpidr+r#�assertEqualr�assertRaisesrr�KeyboardInterrupt�alarm)rr(rrrr�test_interprocess_signal/s@������
�
�
�z0InterProcessSignalTests.test_interprocess_signalN)	rrrrrrr#r+r6rrrrr	sr	�__main__)r0rr&r$r�unittest�testr�	Exceptionr�TestCaser	r�mainrrrr�<module>sE�

Youez - 2016 - github.com/yon3zu
LinuXploit