AlkantarClanX12

Your IP : 18.223.206.84


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

o

6��f��@spddlZddlZddlmZmZddlmZddlmZddlmZdgZ	Gdd	�d	e
�ZGd
d�dej�ZdS)�N�)�	reduction�set_spawning_popen)�
popen_fork)�spawn)�util�Popenc@seZdZdd�Zdd�ZdS)�_DupFdcCs
||_dS�N��fd��selfr�r�H/opt/alt/python310/lib64/python3.10/multiprocessing/popen_spawn_posix.py�__init__s
z_DupFd.__init__cCs|jSr
r)rrrr�detachsz
_DupFd.detachN)�__name__�
__module__�__qualname__rrrrrrr	sr	cs4eZdZdZeZ�fdd�Zdd�Zdd�Z�Z	S)rrcsg|_t��|�dSr
)�_fds�superr)r�process_obj��	__class__rrrszPopen.__init__cCs|j�|�|Sr
)r�appendr
rrr�duplicate_for_child"szPopen.duplicate_for_childcCs�ddlm}|��}|j�|�t�|j�}t�	�}t
|�zt�||�t�||�Wt
d�nt
d�wd}}}}	zut
��\}}t
��\}}	tj||d�}
|j�||g�t�t��|
|j�|_||_t|	ddd��}|�|���Wd�n1s�wYWg}||	fD]}
|
dur�|�|
�q�t�|tj|�|_||fD]}
|
dur�t
�|
�q�dSg}||	fD]}
|
dur�|�|
�q�t�|tj|�|_||fD]}
|
dur�t
�|
�q�w)Nr)�resource_tracker)�
tracker_fdZpipe_handle�wbF)�closefd)�rZgetfdrrrZget_preparation_data�_name�io�BytesIOrr�dump�os�pipeZget_command_line�extendrZspawnv_passfdsZget_executable�pidZsentinel�open�write�	getbufferZFinalizeZ	close_fds�	finalizer�close)rrrrZ	prep_data�fpZparent_rZchild_wZchild_rZparent_w�cmd�fZfds_to_closerrrr�_launch&s`�
���
�
���
�
��z
Popen._launch)
rrr�methodr	ZDupFdrrr2�
__classcell__rrrrrs)
r#r&�contextrrr!rrr�__all__�objectr	rrrrr�<module>s