AlkantarClanX12

Your IP : 3.138.36.168


Current Path : /opt/alt/python37/lib64/python3.7/multiprocessing/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/multiprocessing/__pycache__/popen_spawn_posix.cpython-37.pyc

B

� 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�F/opt/alt/python37/lib64/python3.7/multiprocessing/popen_spawn_posix.py�__init__sz_DupFd.__init__cCs|jS)N)r
)rrrr
�detachsz
_DupFd.detachN)�__name__�
__module__�__qualname__rrrrrr
r	sr	cs4eZdZdZeZ�fdd�Zdd�Zdd�Z�Z	S)rrcsg|_t��|�dS)N)�_fds�superr)r�process_obj)�	__class__rr
rszPopen.__init__cCs|j�|�|S)N)r�append)rr
rrr
�duplicate_for_child"szPopen.duplicate_for_childc
CsBddlm}|��}|j�|�t�|j�}t�	�}t
|�zt�||�t�||�Wdt
d�Xd}}}}	z~t
��\}}t
��\}}	tj||d�}
|j�||g�t�t��|
|j�|_||_t|	ddd��}|�|���WdQRXWd|dk	�rt�|t
j|f�|_x(|||	fD]}|dk	�rt
�|��qWXdS)Nr)�semaphore_tracker)�
tracker_fdZpipe_handle�wbF)�closefd)�rZgetfdrrrZget_preparation_data�_name�io�BytesIOrr�dump�os�pipeZget_command_line�extendrZspawnv_passfdsZget_executable�pid�sentinel�open�write�	getbufferZFinalize�close�	finalizer)
rrrrZ	prep_data�fpZparent_rZchild_wZchild_rZparent_w�cmd�fr
rrr
�_launch&s6



z
Popen._launch)
rrr�methodr	ZDupFdrrr/�
__classcell__rr)rr
rs
)
rr"�contextrrrrrr�__all__�objectr	rrrrr
�<module>s