Edit File: popen_spawn_posix.cpython-311.opt-1.pyc
� �����f�����������������������������d�dl�Z�d�dlZddlmZmZ�ddlmZ�ddlmZ�ddlmZ�dgZ �G�d��d e ������������Z�G�d ��dej��������������������ZdS�)�����N����)� reduction�set_spawning_popen)� popen_fork)�spawn)�util�Popenc�������������������������e�Zd�Zd��Zd��ZdS�)�_DupFdc�����������������������||�_���������d�S��N��fd��selfr���s��� �H/opt/alt/python311/lib64/python3.11/multiprocessing/popen_spawn_posix.py�__init__z_DupFd.__init__���s ���������������c�����������������������|�j���������S�r ���r���)r���s��� r����detachz _DupFd.detach���s �������w�r���N)�__name__� __module__�__qualname__r���r�����r���r���r���r������s2���������������������������r���r���c��������������������2�������e�Zd�ZdZeZ��fd�Zd��Zd��Z��xZ S�)r ���r���c������������������X������g�|�_���������t���������������������������������������������|�������������d�S�r ���)�_fds�superr���)r����process_obj� __class__s��� �r���r���zPopen.__init__���s(��������� � ������%�%�%�%�%r���c������������������:�����|�j������������������������������|�������������|S�r ���)r����appendr���s��� r����duplicate_for_childzPopen.duplicate_for_child"���s������� �������� r���c�����������������������ddl�m}�|�����������������������������������}|�j�����������������������������|�������������t����������j��������|j��������������������}t����������j ����������������������}t����������|�������������� �t����������j��������||�������������t����������j��������||�������������t����������d��������������n#�t����������d��������������w�xY�wd�x}x}x}} �t����������j����������������������\��}}t����������j����������������������\��}} t����������j��������||�������������} |�j�����������������������������||g�������������t#����������j��������t����������j����������������������| |�j��������������������|�_��������||�_��������t-����������| dd�������������5�}|���������������������|������������������������������������������������d�d�d��������������n#�1�swxY�w�Y���g�}|| fD�]} | �|���������������������| ��������������t#����������j��������|�t"����������j��������|������������|�_��������||fD�]} | �t����������j��������| ��������������d�S�#�g�}|| fD�]} | �|���������������������| ��������������t#����������j��������|�t"����������j��������|������������|�_��������||fD�]} | �t����������j��������| ��������������w�xY�w)Nr���)�resource_tracker)� tracker_fd�pipe_handle�wbF)�closefd)��r%����getfdr���r"���r����get_preparation_data�_name�io�BytesIOr���r����dump�os�pipe�get_command_line�extendr����spawnv_passfds�get_executable�pid�sentinel�open�write� getbuffer�Finalize� close_fds� finalizer�close)r���r���r%���r&���� prep_data�fp�parent_r�child_w�child_r�parent_w�cmd�f�fds_to_closer���s��� 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) r���r���r����methodr����DupFdr���r#���rI���� __classcell__)r ���s���@r���r ���r ������s`��������������� �F��E�&��&��&��&��&������"!��"!��"!��"!��"!��"!��"!r���) r.���r1����contextr���r���r*���r���r���r����__all__�objectr���r ���r���r���r����<module>rP������s������� � � � �� � � � ��2��2��2��2��2��2��2��2��������������������������������������)�����������V�������.!��.!��.!��.!��.!�J���.!��.!��.!��.!��.!r���