Your IP : 3.147.49.19


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

�

�Q�f����ddlZddlZddlmZmZddlmZddlmZddlmZdgZ	Gd�d	e
�ZGd
�dej�Zy)�N�)�	reduction�set_spawning_popen)�
popen_fork)�spawn)�util�Popenc��eZdZd�Zd�Zy)�_DupFdc��||_y�N��fd��selfrs  �H/opt/alt/python312/lib64/python3.12/multiprocessing/popen_spawn_posix.py�__init__z_DupFd.__init__s	�����c��|jSr
r)rs r�detachz
_DupFd.detachs���w�w�rN)�__name__�
__module__�__qualname__rr�rrrrs���rrc�2��eZdZdZeZ�fd�Zd�Zd�Z�xZ	S)r	rc�2��g|_t�|�	|�yr
)�_fds�superr)r�process_obj�	__class__s  �rrzPopen.__init__s�����	�
����%rc�<�|jj|�|Sr
)r�appendrs  r�duplicate_for_childzPopen.duplicate_for_child"s���	�	������	rc��ddlm}|j�}|jj	|�tj|j�}tj�}t|�	tj||�tj||�td�dx}x}x}}		tj�\}}tj�\}}	tj||��}
|jj!||g�t#j$tj&�|
|j�|_||_t-|	dd��5}|j/|j1��ddd�g}||	fD]}
|
��|j	|
��t#j2|t"j4|�|_||fD]}
|
��tj8|
��y#td�wxYw#1swY��xYw#g}||	fD]}
|
��|j	|
��t#j2|t"j4|�|_||fD]}
|
��tj8|
��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�	�
�Z�Z�\���4� �	%��N�N�9�b�)��N�N�;��+��t�$�26�6��6�7�6�W�x�	!� "���	��H�g� "���	��G�X��(�(�J�5<�>�C��I�I���g�w�/�0��*�*�5�+?�+?�+A�+.��	�	�;�D�H�$�D�M��h��e�4���������'�5��L���*���>� �'�'��+�+�"�]�]�4�����N�D�N���(���>��H�H�R�L�)��+
�t�$��5�4���L���*���>� �'�'��+�+�"�]�]�4�����N�D�N���(���>��H�H�R�L�)�s>�1,G3�1B/H�  H�H�3
H�H�H�I;�AI;�#I;)
rrr�methodr�DupFdrr#rI�
__classcell__)r s@rr	r	s���
�F��E�&��"!r)
r.r1�contextrrr*rrr�__all__�objectrr	rrr�<module>rPs<��	�	�2�����)���V��.!�J���.!r

?>