AlkantarClanX12

Your IP : 3.135.202.38


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

B

� f��@s�ddlZddlZddlmZmZejs.ed��ddlmZddlm	Z	ddlm
Z
ddlmZd	gZGd
d�de
�ZGdd	�d	e	j�ZdS)
�N�)�	reduction�set_spawning_popenz,No support for sending fds between processes)�
forkserver)�
popen_fork)�spawn)�util�Popenc@seZdZdd�Zdd�ZdS)�_DupFdcCs
||_dS)N)�ind)�selfr�r
�E/opt/alt/python37/lib64/python3.7/multiprocessing/popen_forkserver.py�__init__sz_DupFd.__init__cCst��|jS)N)rZget_inherited_fdsr)rr
r
r�detachsz
_DupFd.detachN)�__name__�
__module__�__qualname__rrr
r
r
rr
sr
csBeZdZdZeZ�fdd�Zdd�Zdd�Ze	j
fdd	�Z�ZS)
r	rcsg|_t��|�dS)N)�_fds�superr)r�process_obj)�	__class__r
rr!szPopen.__init__cCs|j�|�t|j�dS)Nr)r�append�len)r�fdr
r
r�duplicate_for_child%szPopen.duplicate_for_childc	Cs�t�|j�}t��}t|�zt�||�t�||�Wdtd�Xt�	|j
�\|_}t�
|tj|jf�|_t|ddd��}|�|���WdQRXt�|j�|_dS)N�wbT)�closefd)rZget_preparation_data�_name�io�BytesIOrr�dumprZconnect_to_new_processr�sentinelrZFinalize�os�close�	finalizer�open�write�	getbuffer�read_signed�pid)rrZ	prep_dataZbuf�w�fr
r
r�_launch)s
z
Popen._launchc	Csr|jdkrlddlm}|tjkr$dnd}||jg|�s:dSyt�|j�|_Wntt	fk
rjd|_YnX|jS)Nr)�wait�)
�
returncodeZmultiprocessing.connectionr.r#�WNOHANGr"rr)�OSError�EOFError)r�flagr.Ztimeoutr
r
r�poll9s
z
Popen.poll)
rrr�methodr
ZDupFdrrr-r#r1r5�
__classcell__r
r
)rrr	s)rr#�contextrrZHAVE_SEND_HANDLE�ImportError�rrrr�__all__�objectr
r	r
r
r
r�<module>s