Your IP : 18.221.240.14


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

�

c��f����ddlZddlZddlmZmZddlmZddlmZddlmZdgZ	Gd�d	e
��ZGd
�dej��ZdS)�N�)�	reduction�set_spawning_popen)�
popen_fork)�spawn)�util�Popenc��eZdZd�Zd�ZdS)�_DupFdc��||_dS�N��fd��selfrs  �H/opt/alt/python311/lib64/python3.11/multiprocessing/popen_spawn_posix.py�__init__z_DupFd.__init__s
�������c��|jSr
r)rs r�detachz
_DupFd.detachs	���w�rN)�__name__�
__module__�__qualname__rr�rrrrs2�������������rrc�2��eZdZdZeZ�fd�Zd�Zd�Z�xZ	S)r	rc�X��g|_t���|��dSr
)�_fds�superr)r�process_obj�	__class__s  �rrzPopen.__init__s(�����	�
������%�%�%�%�%rc�:�|j�|��|Sr
)r�appendrs  r�duplicate_for_childzPopen.duplicate_for_child"s���	��������	rc���ddlm}|���}|j�|��tj|j��}tj	��}t|��	tj||��tj||��td��n#td��wxYwdx}x}x}}		tj��\}}tj��\}}	tj||���}
|j�||g��t#jtj��|
|j��|_||_t-|	dd���5}|�|�����ddd��n#1swxYwYg}||	fD]}
|
�|�|
���t#j|t"j|��|_||fD]}
|
�tj|
���dS#g}||	fD]}
|
�|�|
���t#j|t"j|��|_||fD]}
|
�tj|
���wxYw)Nr)�resource_tracker)�
tracker_fd�pipe_handle�wbF)�closefd)�r%�getfdrr"r�get_preparation_data�_name�io�BytesIOrr�dump�os�pipe�get_command_line�extendr�spawnv_passfds�get_executable�pid�sentinel�open�write�	getbuffer�Finalize�	close_fds�	finalizer�close)rrr%r&�	prep_data�fp�parent_r�child_w�child_r�parent_w�cmd�f�fds_to_closers              r�_launchz
Popen._launch&s���&�&�&�&�&�&�%�+�+�-�-�
��	����$�$�$��.�{�/@�A�A�	�
�Z�\�\���4� � � �	%��N�9�b�)�)�)��N�;��+�+�+��t�$�$�$�$���t�$�$�$�$����26�6��6�7�6�W�x�	!� "��	�	��H�g� "��	�	��G�X��(�J�5<�>�>�>�C��I���g�w�/�0�0�0��*�5�+?�+A�+A�+.��	�;�;�D�H�$�D�M��h��e�4�4�4�
(����������'�'�'�
(�
(�
(�
(�
(�
(�
(�
(�
(�
(�
(����
(�
(�
(�
(��L���*�
,�
,���>� �'�'��+�+�+��!�]�4����N�N�D�N���(�
!�
!���>��H�R�L�L�L��
!�
!��
�L���*�
,�
,���>� �'�'��+�+�+��!�]�4����N�N�D�N���(�
!�
!���>��H�R�L�L�L��
!���s>�1*B+�+B<�B(H�0(F$�H�$F(�(H�+F(�,H�A$I7)
rrr�methodr�DupFdrr#rI�
__classcell__)r s@rr	r	s`�������
�F��E�&�&�&�&�&����"!�"!�"!�"!�"!�"!�"!r)
r.r1�contextrrr*rrr�__all__�objectrr	rrr�<module>rPs���	�	�	�	�	�	�	�	�2�2�2�2�2�2�2�2��������������������)�������V����.!�.!�.!�.!�.!�J��.!�.!�.!�.!�.!r

?>