AlkantarClanX12

Your IP : 18.217.98.175


Current Path : /opt/alt/python311/lib64/python3.11/multiprocessing/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/multiprocessing/__pycache__/popen_forkserver.cpython-311.pyc

�

c��f�����ddlZddlZddlmZmZejsed���ddlmZddlm	Z	ddlm
Z
ddlmZd	gZGd
�de
��ZGd�d	e	j��ZdS)
�N�)�	reduction�set_spawning_popenz,No support for sending fds between processes)�
forkserver)�
popen_fork)�spawn)�util�Popenc��eZdZd�Zd�ZdS)�_DupFdc��||_dS�N)�ind)�selfrs  �G/opt/alt/python311/lib64/python3.11/multiprocessing/popen_forkserver.py�__init__z_DupFd.__init__s
�������c�>�tj��|jSr)r�get_inherited_fdsr)rs r�detachz
_DupFd.detachs���+�-�-�d�h�7�7rN)�__name__�
__module__�__qualname__rr�rrrrs2���������8�8�8�8�8rrc�F��eZdZdZeZ�fd�Zd�Zd�Ze	j
fd�Z�xZS)r
rc�X��g|_t���|��dSr)�_fds�superr)r�process_obj�	__class__s  �rrzPopen.__init__!s(�����	�
������%�%�%�%�%rc�d�|j�|��t|j��dz
S)Nr)r�append�len)r�fds  r�duplicate_for_childzPopen.duplicate_for_child%s+���	��������4�9�~�~��!�!rc��tj|j��}tj��}t|��	t
j||��t
j||��td��n#td��wxYwtj	|j
��\|_}tj
|��}tj|tj||jf��|_t%|dd���5}|�|�����ddd��n#1swxYwYtj|j��|_dS)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)sc���.�{�/@�A�A�	��j�l�l���4� � � �	%��N�9�c�*�*�*��N�;��,�,�,��t�$�$�$�$���t�$�$�$�$����%�<�T�Y�G�G���
�q��F�1�I�I�	���t�T�^�(1�4�=�'A�C�C���
�!�T�4�
(�
(�
(�	%�A�
�G�G�C�M�M�O�O�$�$�$�	%�	%�	%�	%�	%�	%�	%�	%�	%�	%�	%����	%�	%�	%�	%��)�$�-�8�8����s�*A7�7B�>(D2�2D6�9D6c��|j�lddlm}|tjkrdnd}||jg|��sdS	t
j|j��|_n#ttf$r
d|_YnwxYw|jS)Nr)�wait�)
�
returncode�multiprocessing.connectionrAr0�WNOHANGr/rr8�OSError�EOFError)r�flagrA�timeouts    r�pollz
Popen.poll=s����?�"�7�7�7�7�7�7��2�:�-�-�a�a�4�G��4�����1�1�
��t�
&�",�"8���"G�"G������X�&�
&�
&�
&�#&�����
&����
��s�A�A1�0A1)
rrr�methodr�DupFdrr%r?r0rErJ�
__classcell__)r s@rr
r
s{�������
�F��E�&�&�&�&�&�"�"�"�9�9�9�(�
�
�
�
�
�
�
�
�
r)r+r0�contextrr�HAVE_SEND_HANDLE�ImportError�rrrr	�__all__�objectrr
rrr�<module>rTs���	�	�	�	�	�	�	�	�2�2�2�2�2�2�2�2��!�F�
�+�D�
E�
E�E��������������������������)��8�8�8�8�8�V�8�8�8�-�-�-�-�-�J��-�-�-�-�-r