AlkantarClanX12

Your IP : 3.145.33.244


Current Path : /opt/alt/python310/lib64/python3.10/multiprocessing/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/multiprocessing/__pycache__/popen_fork.cpython-310.pyc

o

6��fI	�@s6ddlZddlZddlmZdgZGdd�de�ZdS)�N�)�util�Popenc@s`eZdZdZdd�Zdd�Zejfdd�Zdd	d
�Z	dd�Z
d
d�Zdd�Zdd�Z
dd�ZdS)r�forkcCs"t��d|_d|_|�|�dS�N)rZ_flush_std_streams�
returncode�	finalizer�_launch)�self�process_obj�r�A/opt/alt/python310/lib64/python3.10/multiprocessing/popen_fork.py�__init__szPopen.__init__cCs|Srr)r
�fdrrr
�duplicate_for_childszPopen.duplicate_for_childcCsR|jdur&zt�|j|�\}}Wn
tyYdSw||jkr&t�|�|_|jSr)r�os�waitpid�pid�OSError�waitstatus_to_exitcode)r
�flagr�stsrrr
�polls
�
z
Popen.pollNcCsP|jdur%|durddlm}||jg|�sdS|�|dkr"tj�Sd�S|jS)Nr)�waitg)rZmultiprocessing.connectionr�sentinelrr�WNOHANG)r
�timeoutrrrr
r$s
z
Popen.waitcCs\|jdur,z
t�|j|�WdStyYdSty+|jdd�dur(�YdSwdS)Ng�������?)r)rr�killr�ProcessLookupErrorrr)r
Zsigrrr
�_send_signal.s
���zPopen._send_signalcC�|�tj�dSr)r�signal�SIGTERM�r
rrr
�	terminate8�zPopen.terminatecCr r)rr!�SIGKILLr#rrr
r;r%z
Popen.killc	Cs�d}t��\}}t��\}}t��|_|jdkr7zt�|�t�|�|j|d�}Wt�|�dSt�|�wt�|�t�|�t�|tj	||f�|_
||_dS)Nrr)Zparent_sentinel)r�piperr�close�
_bootstrap�_exitrZFinalizeZ	close_fdsrr)r
r�codeZparent_rZchild_wZchild_rZparent_wrrr
r	>s 






�
z
Popen._launchcCs|jdur|��dSdSr)rr#rrr
r(Qs
�zPopen.closer)�__name__�
__module__�__qualname__�methodrrrrrrrr$rr	r(rrrr
rs


)rr!�r�__all__�objectrrrrr
�<module>s