Your IP : 3.137.189.236


Current Path : /opt/alt/python312/lib64/python3.12/multiprocessing/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/multiprocessing/__pycache__/popen_forkserver.cpython-312.pyc

�

�Q�f�����ddlZddlZddlmZmZej
sed��ddlmZddlm	Z	ddlm
Z
ddlmZd	gZGd
�de
�ZGd�d	e	j�Zy)
�N�)�	reduction�set_spawning_popenz,No support for sending fds between processes)�
forkserver)�
popen_fork)�spawn)�util�Popenc��eZdZd�Zd�Zy)�_DupFdc��||_y�N)�ind)�selfrs  �G/opt/alt/python312/lib64/python3.12/multiprocessing/popen_forkserver.py�__init__z_DupFd.__init__s	�����c�D�tj�|jSr)r�get_inherited_fdsr)rs r�detachz
_DupFd.detachs���+�+�-�d�h�h�7�7rN)�__name__�
__module__�__qualname__rr�rrrrs���8rrc�P��eZdZdZeZ�fd�Zd�Zd�Ze	jfd�Z�xZS)r
rc�2��g|_t�|�	|�yr)�_fds�superr)r�process_obj�	__class__s  �rrzPopen.__init__!s�����	�
����%rc�h�|jj|�t|j�dz
S)Nr)r�append�len)r�fds  r�duplicate_for_childzPopen.duplicate_for_child%s'���	�	������4�9�9�~��!�!rc��tj|j�}tj�}t|�	t
j||�t
j||�td�tj|j�\|_}tj|�}tj|tj ||jf�|_t%|dd��5}|j'|j)��ddd�tj*|j�|_y#td�wxYw#1swY�>xYw)N�wbT)�closefd)r�get_preparation_data�_name�io�BytesIOrr�dumpr�connect_to_new_processr�sentinel�os�dupr	�Finalize�	close_fds�	finalizer�open�write�	getbuffer�read_signed�pid)rr�	prep_data�buf�w�	_parent_w�fs       r�_launchz
Popen._launch)s����.�.�{�/@�/@�A�	��j�j�l���4� �	%��N�N�9�c�*��N�N�;��,��t�$�%�<�<�T�Y�Y�G���
�q��F�F�1�I�	����t�T�^�^�(1�4�=�=�'A�C���
�!�T�4�
(�A�
�G�G�C�M�M�O�$�)��)�)�$�-�-�8����
�t�$��)�
(�s�,E�7 E�
E�Ec�F�|j�cddlm}|tjk(rdnd}||j
g|�sy	t
j|j
�|_|jS|jS#ttf$rd|_Y|jSwxYw)Nr)�wait�)
�
returncode�multiprocessing.connectionrAr0�WNOHANGr/rr8�OSError�EOFError)r�flagrA�timeouts    r�pollz
Popen.poll=s����?�?�"�7��2�:�:�-�a�4�G�������1��
&�",�"8�"8����"G�������t������X�&�
&�#&�������
&�s�$A<�<B �B )
rrr�methodr�DupFdrr%r?r0rErJ�
__classcell__)r s@rr
r
s*���
�F��E�&�"�9�(�
�
�
r)r+r0�contextrr�HAVE_SEND_HANDLE�ImportError�rrrr	�__all__�objectrr
rrr�<module>rTsV��	�	�2��!�!�
�D�
E�E������)��8�V�8�-�J���-r

?>