Hacked By AnonymousFox

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.opt-2.pyc

B

YI~d��@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_data�buf�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#r2r6�
__classcell__r
r
)rrr	s)rr#�contextrrZHAVE_SEND_HANDLE�ImportError�rrrr�__all__�objectr
r	r
r
r
r�<module>s

Hacked By AnonymousFox1.0, Coded By AnonymousFox