Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python311/lib64/python3.11/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/lib64/python3.11/__pycache__/subprocess.cpython-311.opt-2.pyc
�

�,d�R���	ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlmZddl
Z
	ddlZn
#e$rdZYnwxYwgd�Z	ddlZdZn
#e$rdZYnwxYwejdvZerDddlZddlmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(e�)gd���n@er*dd	l*m+Z,ej-Z.ej/Z0ej1Z2ej3Z4ej5Z6ndZ,dZ.dZ0dZ2dZ4dZ6ddl7Z7ddl8Z8Gd
�de9��Z:Gd�d
e:��Z;Gd�de:��Z<erGd�d��Z=Gd�de>��Z?n(e@e7dd��ZAeBe8d��re8jCZDne8jEZDerdZFd�ZGngZFd�ZGdZHdZIdZJd�ZKd�ZLd�ZMdd�d �ZNd!�ZOdd�d"�ZPGd#�d$eQ��ZRddddd%�d&�ZSd'�ZTddd(�d)�ZUddd(�d*�ZVd+�ZWeW��ZXdZYGd,�d-��ZZdS).�N)�	monotonic)�Popen�PIPE�STDOUT�call�
check_call�getstatusoutput�	getoutput�check_output�run�CalledProcessError�DEVNULL�SubprocessError�TimeoutExpired�CompletedProcessTF>�wasi�
emscripten)�CREATE_NEW_CONSOLE�CREATE_NEW_PROCESS_GROUP�STD_INPUT_HANDLE�STD_OUTPUT_HANDLE�STD_ERROR_HANDLE�SW_HIDE�STARTF_USESTDHANDLES�STARTF_USESHOWWINDOW�ABOVE_NORMAL_PRIORITY_CLASS�BELOW_NORMAL_PRIORITY_CLASS�HIGH_PRIORITY_CLASS�IDLE_PRIORITY_CLASS�NORMAL_PRIORITY_CLASS�REALTIME_PRIORITY_CLASS�CREATE_NO_WINDOW�DETACHED_PROCESS�CREATE_DEFAULT_ERROR_MODE�CREATE_BREAKAWAY_FROM_JOB)rrrrrrrr�STARTUPINFOrrrrr r!r"r#r$r%)�	fork_execc��eZdZdS)rN)�__name__�
__module__�__qualname__���1/opt/alt/python311/lib64/python3.11/subprocess.pyrr{s�������r-rc�T�eZdZ	dd�Zd�Zed���Zejd���ZdS)r
Nc�>�||_||_||_||_dS�N)�
returncode�cmd�output�stderr)�selfr2r3r4r5s     r.�__init__zCalledProcessError.__init__�s"��$�������������r-c���|jrS|jdkrHd|j�dtj|j���d�S#t$rd|j|jfzcYSwxYwd|j|jfzS)Nr�	Command 'z' died with �.z)Command '%s' died with unknown signal %d.z.Command '%s' returned non-zero exit status %d.)r2r3�signal�Signals�
ValueError�r6s r.�__str__zCalledProcessError.__str__�s����?�		/�t���2�2�
4�����&�.�$�/�1A�"B�"B�"B�"B�D�D���
4�
4�
4�B���4�?�"2�F4�4�4�4�4�
4����D��H�d�o�G/�/�
/s�%9�A�Ac��	|jSr1�r4r>s r.�stdoutzCalledProcessError.stdout�s
��9��{�r-c��||_dSr1rA�r6�values  r.rBzCalledProcessError.stdout��������r-�NN�r)r*r+r7r?�propertyrB�setterr,r-r.r
r
~st�����������
/�
/�
/�����X���]����]���r-r
c�T�eZdZ	dd�Zd�Zed���Zejd���ZdS)rNc�>�||_||_||_||_dSr1)r3�timeoutr4r5)r6r3rMr4r5s     r.r7zTimeoutExpired.__init__�s"���������������r-c�(�d|j�d|j�d�S)Nr9z' timed out after z seconds)r3rMr>s r.r?zTimeoutExpired.__str__�s�������4�<�<�<�)�	*r-c��|jSr1rAr>s r.rBzTimeoutExpired.stdout�s
���{�r-c��||_dSr1rArDs  r.rBzTimeoutExpired.stdout�rFr-rGrHr,r-r.rr�st�����������*�*�*�����X���]����]���r-rc�*�eZdZddddddd�d�Zd�ZdS)r&rN��dwFlags�	hStdInput�
hStdOutput�	hStdError�wShowWindow�lpAttributeListc�b�||_||_||_||_||_|pdgi|_dS)N�handle_listrR)r6rSrTrUrVrWrXs       r.r7zSTARTUPINFO.__init__�s>��"�D�L�&�D�N�(�D�O�&�D�N�*�D��#2�#I�}�b�6I�D� � � r-c���|j���}d|vrt|d��|d<t|j|j|j|j|j|���S)NrZrR)	rX�copy�listr&rSrTrUrVrW)r6�	attr_lists  r.r\zSTARTUPINFO.copy�sk���,�1�1�3�3�I��	�)�)�+/�	�-�0H�+I�+I�	�-�(��t�|�)-��*.�/�)-��+/�+;�/8�:�:�:�
:r-)r)r*r+r7r\r,r-r.r&r&�sO������&'�4�D�#��D�	J�	J�	J�	J�	J�
	:�
	:�
	:�
	:�
	:r-r&c�6�eZdZdZejfd�Zd�Zd�ZeZ	dS)�HandleFc�<�|jsd|_||��dSdS)NT)�closed)r6�CloseHandles  r.�ClosezHandle.Close�s3���;�
"�"�����D�!�!�!�!�!�
"�
"r-c�Z�|jsd|_t|��Std���)NTzalready closed)rb�intr=r>s r.�Detachz
Handle.Detach�s.���;�
!�"����4�y�y� ��-�.�.�.r-c�>�d|jjt|��fzS)Nz%s(%d))�	__class__r)rfr>s r.�__repr__zHandle.__repr__�s���t�~�6��D�	�	�B�B�Br-N)
r)r*r+rb�_winapircrdrgrj�__del__r,r-r.r`r`�sU��������$+�$7�	"�	"�	"�	"�
	/�	/�	/�	C�	C�	C����r-r`�PIPE_BUFi�PollSelectorc��dSr1r,r,r-r.�_cleanuprps���r-c���t�dStdd�D]P}|�tj���}|�,	t�|���@#t
$rY�LwxYw�QdS)N��
_deadstate)�_active�_internal_poll�sys�maxsize�remover=)�inst�ress  r.rprps����?��F��A�A�A�J�	�	�D��%�%���%�=�=�C�����N�N�4�(�(�(�(��!�����D������	�	s�A�
A&�%A&���������c�p�	g}tjj}|dkr|�dd|zz��|S)Nr�-�O)rv�flags�optimize�append)�argsrEs  r.�"_optim_args_from_interpreter_flagsr�"s?��+�
�D��I��E��q�y�y����C�#��+�%�&�&�&��Kr-c��	ddddddd�}t��}|���D]@\}}ttj|��}|dkr|�d	||zz���Atjjr|�d
��nrtjjr|�d��tjjr|�d��tjj	r|�d
��tj
dd�}ttdi��}tjj}tjj}|dkr|�
d��n|r|�
d��|r|�
d��|D]}|�d|z���|r|�d��dD]3}||vr-||}	|	dur|}
n|�d|	��}
|�d|
f���4|S)N�d�B�S�v�b�q)�debug�dont_write_bytecode�no_site�verbose�
bytes_warning�quietrrz-Iz-Ez-sz-P�	_xoptions�zerror::BytesWarningzdefault::BytesWarning�defaultz-W)�-X�dev)�faulthandler�tracemalloc�
importtime�showrefcount�utf8T�=r�)r��items�getattrrvr�r��isolated�ignore_environment�no_user_site�	safe_path�warnoptionsr��dev_moderx�extend)�flag_opt_mapr��flag�optr��warnopts�xoptionsr�r�rE�args           r.�_args_from_interpreter_flagsr�,s:��A�� #�����
�
�L�.�/�/�D�!�'�'�)�)�'�'�	��c��C�I�t�$�$���q�5�5��K�K��c�A�g�
�&�&�&��
�y������D������9�'�	��K�K������9�!�	��K�K������9��	��K�K�������q�q�q�!�H��s�K��,�,�H��I�+�M��y�!�H��q������-�.�.�.�.�	�1����/�0�0�0��#����	�"�"�"�� � �����D�3�J������#����M�"�"�"�(�%�%���(�?�?��S�M�E���}�}����!$���e�e�,���K�K��s��$�$�$���Kr-c�8�tjjrdtj��}|jj}d}|jx}r|jj|krn|dz
}|jx}�tjdt|��tjj
rdStj��S)N�r�z"'encoding' argument not specified.zutf-8)
rvr��warn_default_encoding�	_getframe�f_code�co_filename�f_back�warnings�warn�EncodingWarning�	utf8_mode�locale�getencoding)�f�filename�
stacklevels   r.�_text_encodingr�is����y�&�	3��M�O�O���8�'���
��8�m�a�	��x�#�x�/�/���!�O�J��8�m�a�	�	�
�:�%�z�	3�	3�	3��y��$��w��!�#�#�#r-�rMc��	t|i|��5}	|�|���cddd��S#|����xYw#1swxYwYdS)Nr�)r�wait�kill)rM�	popenargs�kwargs�ps    r.rr}s����
�	�	$�V�	$�	$���	��6�6�'�6�*�*����������	�
�F�F�H�H�H�����
������������s �A�2�A	�	A�A�Ac��	t|i|��}|r/|�d��}|�|d}t||���dS)Nr�r)r�getr
)r�r��retcoder3s    r.rr�sW����I�(��(�(�G��/��j�j�� � ���;��A�,�C� ��#�.�.�.��1r-c�B�	dD]}||vrt|�d�����d|vrf|d�^|�d��s?|�d��s*|�d��s|�d��rd}nd	}||d<t|t|d
d�|��jS)N)rB�checkz- argument not allowed, it will be overridden.�input�universal_newlines�text�encoding�errors�r-T)rBrMr�)r=r�rrrB)rMr�r��kw�emptys     r.rr�s���!�D"�S�S��
��<�<���Q�Q�Q�R�R�R���&���V�G�_�4��:�:�*�+�+�	�v�z�z�&�/A�/A�	�V�Z�Z�PZ�E[�E[�	��:�:�h�'�'�	��E�E��E���w���	�$��t������� r-c�D�eZdZ	dd�Zd�Zeej��Zd�Z	dS)rNc�>�||_||_||_||_dSr1)r�r2rBr5)r6r�r2rBr5s     r.r7zCompletedProcess.__init__�s"����	�$����������r-c��d�|j��d�|j��g}|j�-|�d�|j����|j�-|�d�|j����d�t
|��jd�|����S)Nz	args={!r}zreturncode={!r}zstdout={!r}zstderr={!r}z{}({})z, )	�formatr�r2rBr�r5�typer)�join)r6r�s  r.rjzCompletedProcess.__repr__�s����"�"�4�9�-�-�!�(�(���9�9�;���;�"��K�K�
�,�,�T�[�9�9�:�:�:��;�"��K�K�
�,�,�T�[�9�9�:�:�:����t�D�z�z�2�D�I�I�d�O�O�D�D�Dr-c�b�	|jr&t|j|j|j|j���dSr1)r2r
r�rBr5r>s r.�check_returncodez!CompletedProcess.check_returncode�s<��D��?�	2�$�T�_�d�i���%)�[�2�2�
2�	2�	2r-rG)
r)r*r+r7rj�classmethod�types�GenericAlias�__class_getitem__r�r,r-r.rr�sc������	�����E�E�E�$��E�$6�7�7��2�2�2�2�2r-r)r��capture_outputrMr�c��	|�.|�d���td���t|d<|rM|�d���|�d���td���t|d<t|d<t|i|��5}	|�||���\}}ny#t
$rW}	|���tr"|���\|	_|	_	n|�
���d}	~	w|����xYw|���}
|r|
rt|
|j
||����ddd��n#1swxYwYt|j
|
||��S)N�stdinz/stdin and input arguments may not both be used.rBr5z@stdout and stderr arguments may not be used with capture_output.r��r4r5)r�r=rr�communicaterr��
_mswindowsrBr5r��pollr
r�r)r�r�rMr�r�r��processrBr5�excr�s           r.rr�s����8
���:�:�g���*��N�O�O�O���w��� ��:�:�h���+�v�z�z�(�/C�/C�/O��4�5�5�
5���x����x��	�	�	$�V�	$�	$�C��	�$�0�0���0�H�H�N�F�F�F���
	�
	�
	��L�L�N�N�N��

�*1�)<�)<�)>�)>�&��
�C�J�J������������	��L�L�N�N�N������,�,�.�.���	C�W�	C�$�W�g�l�,2�6�C�C�C�
C�/C�C�C�C�C�C�C�C�C�C�C����C�C�C�C�2�G�L�'�6�6�B�B�Bs7�
E�B*�)E�*
D �4AD�D � 3E�E#�&E#c��	g}d}ttj|��D�]}g}|r|�d��d|vpd|vp|}|r|�d��|D]�}|dkr|�|���|dkr@|�dt	|��zdz��g}|�d���d|r|�|��g}|�|����|r|�|��|r*|�|��|�d����d�|��S)	NF� �	�"�\r�z\"r�)�map�os�fsdecoder��lenr�r�)�seq�result�	needquoter��bs_buf�cs      r.�list2cmdliner�@s����:�F��I��2�;��$�$�!�!�����	��M�M�#�����C�Z�<�T�S�[�<��W�	��	��M�M�#�����	!�	!�A��D�y�y��
�
�a� � � � ��c����
�
�d�S��[�[�0��2�3�3�3����
�
�e�$�$�$�$�� ��M�M�&�)�)�)��F��
�
�a� � � � ��	"��M�M�&�!�!�!��	��M�M�&�!�!�!��M�M�#�����
�7�7�6�?�?�r-�r�r�c���		t|ddt||���}d}n%#t$r}|j}|j}Yd}~nd}~wwxYw|dd�dkr
|dd�}||fS)NT)�shellr�r5r�r�rr{�
)rrr
r4r2)r3r�r��data�exitcode�exs      r.r	r	�s����(!��C�t�$�v�%-�f�>�>�>�������!�!�!��y���=�����������!�����B�C�C�y�D����C�R�C�y���T�>�s� �
A�=�Ac�4�	t|||���dS)Nr�r�)r	)r3r�r�s   r.r
r
�s#����3��&�A�A�A�!�D�Dr-c���	tsttd��sdStjdvrdS	tjd��}|�d���}t|��dkrt�|d	}ttt|d�d
������}tjdkr|dkr|d
krdSn#tttf$rYnwxYwdS)N�posix_spawnF)�darwin�sunos5T�CS_GNU_LIBC_VERSIONr�)�maxsplitr�rr:�linux�glibc)r��)r��hasattrr�rv�platform�confstr�splitr�r=�tupler�rf�AttributeError�OSError)�ver�parts�libc�versions    r.�_use_posix_spawnr�s�������]�3�3���u�
�|�+�+�+��t�
��j�.�/�/���	�	�1�	�%�%���u�:�:��?�?����Q�x����C��q�����!4�!4�5�5�6�6���<�7�"�"�t�w���7�g�;M�;M��4���
�J��0�
�
�
���
����
�5s�B#C�C1�0C1c���eZdZ	dZ							d.dddddddddd�	d�Zd	�Zeej��Z	e
d
���Zejd���Zd�Z
d
�Zd�Zejejfd�Zd�Zd�Zd/d�Zd�Zd�Z	d0d�Zd1d�Zd�Zer6d�Zd�Zd�Z d�Z!de"j#e"j$e"j%fd�Z&d�Z'd�Z(d�Z)d �Z*d!�Z+e+Z,dSd"�Zd#�Z-d$�Z!e.e/e0fd%�Z1de2e3e4j5fd&�Z&d'�Z6d(�Z'd)�Z)d*�Z7d+�Z*d,�Z+d-�Z,dS)2rFr{NTrr,)	�user�group�extra_groupsr�r�r��umask�pipesize�
process_groupc	��	ts'ttjtj�d����t
��tj��|_	d|_
d|_|�d}t|t��std���|�d}t|t��std���tr|�t!d���nF|r|st#jdt&��d}|
�t!d	���|d
krt!d���||_d|_d|_d|_d|_d|_||_||_||_|�1|�/t;|��t;|��krt=d���|�|||��\}}}}}} tr�|dkr'tAj!|�"��d
��}|dkr'tAj!|�"��d
��}|dkr'tAj!|�"��d
��}|p|p|p||_#|j#r|�tI��x|_}d
|_%d|_&|j#r
|dkrd}!d}nd}!|�d}d}"|��tOtPd��st!d���t|tR��r>	d
dl*}#n#tV$rt!d���wxYw|#�,|��j-}"nGt|t��r|}"n/td�.t_|�������|"d
krt!d|"�����d}$|��+tOtPd��st!d���t|tR��rt!d���g}$|D]�}%t|%tR��rQ	d
dl*}#n#tV$rt!d���wxYw|$�0|#�,|%��j-���ht|%t��r|$�0|%����td�.t_|%�������|$D]}&|&d
krt!d|&������d}'|��tOtPd��st!d���t|tR��r>	d
dl1}(n#tV$rt!d���wxYw|(�2|��j3}'n't|t��r|}'ntd���|'d
krt!d|'�����	|dkrEtij5|d|��|_|j#r#tij6|jd|!||���|_|dkrCtij5|d |��|_|j#r!tij6|j||�!��|_|dkrCtij5|d |��|_|j#r!tij6|j||�!��|_|�7||||||
||
||	|||||| ||"|$|'|||��dS#tqd|j|j|jf��D]'})	|)�9���#t$rY�$wxYw|j&s�g}*|ttkr|*�0|��|ttkr|*�0|��|ttkr|*�0| ��tO|d"��r|*�0|j;��|*D]X}+	tr*t|+tx��r|+�=��ntQj9|+���I#t$rY�UwxYw�xYw)#Nz does not support processes.Fr{zbufsize must be an integerzpipesize must be an integerz0preexec_fn is not supported on Windows platformszpass_fds overriding close_fds.Tz2startupinfo is only supported on Windows platformsrz4creationflags is only supported on Windows platformszlCannot disambiguate when both text and universal_newlines are supplied but different. Pass one or the other.g�?r��setregidz>The 'group' parameter is not supported on the current platformzHThe group parameter cannot be a string on systems without the grp modulez,Group must be a string or an integer, not {}z!Group ID cannot be negative, got �	setgroupszEThe 'extra_groups' parameter is not supported on the current platformz#Groups must be a list, not a stringzIItems in extra_groups cannot be strings on systems without the grp modulez9Items in extra_groups must be a string or integer, not {}�setreuidz=The 'user' parameter is not supported on the current platformzGThe user parameter cannot be a string on systems without the pwd modulez#User must be a string or an integerz User ID cannot be negative, got �wb)�
write_through�line_bufferingr�r��rbr��_devnull)>�_can_fork_execr�errno�ENOTSUPrvr	rp�	threading�Lock�
_waitpid_lock�_input�_communication_started�
isinstancerf�	TypeErrorr�r=r�r��RuntimeWarningr�r�rBr5�pidr2r�r�r�boolr�_get_handles�msvcrt�open_osfhandlerg�	text_moder��_sigint_wait_secs�_closed_child_pipe_fdsrr��str�grp�ImportError�getgrnam�gr_gidr�r�r��pwd�getpwnam�pw_uid�io�open�
TextIOWrapper�_execute_child�filter�closerr#r`rd),r6r��bufsize�
executabler�rBr5�
preexec_fn�	close_fdsr��cwd�envr��startupinfo�
creationflags�restore_signals�start_new_session�pass_fdsrrrr�r�r�rrr�p2cread�p2cwrite�c2pread�c2pwrite�errread�errwriter!�gidr8�gids�extra_group�	gid_check�uidr<r��to_close�fds,                                            r.r7zPopen.__init__'s	��	)��	���
�#�,�L�L�L���
�	�
�
�
�'�^�-�-������&+��#��?��G��'�3�'�'�	:��8�9�9�9����H��(�C�(�(�	;��9�:�:�:��	.��%� �"-�.�.�.�&�
�
!�	�
!��
�>��O�O�O� �	��&� �"-�.�.�.���!�!� �"-�.�.�.���	���
������������� ��
���� ��
�
��!3�!?��'�(�(�D��J�J�6�6�!�#F�G�G�
G�*#�/�/��v�v�F�F�	��(�	�(�	�(��	E��2�~�~�!�0����1B�1B�A�F�F���"�}�}� �/����0@�0@�!�D�D���"�}�}� �/����0@�0@�!�D�D��!�I�V�I�t�I�7I����>�	8�h�.�'5�'7�'7�7�D�M�H�
"&���&+��#��>�	'��!�|�|�!%�����!&��� ��M������2�z�*�*�
6� �"4�5�5�5��E�3�'�'�
6�J��J�J�J�J��"�J�J�J�$�&I�J�J�J�J�����l�l�5�)�)�0����E�3�'�'�
6����� N�!'���U���!4�!4�6�6�6��Q�w�w� �!J�S�!J�!J�K�K�K����#��2�{�+�+�
H� �"E�F�F�F��L�#�.�.�
H� �!F�G�G�G��D�+�
@�
@���k�3�/�/�@�7�"�
�
�
�
��&�7�7�7�(�*6�7�7�7�7����
�K�K����[� 9� 9� @�A�A�A�A���S�1�1�@��K�K��,�,�,�,�#�%9�%+�V�D��,=�,=�%>�%>�@�@�@�"�
V�
V�	��q�=�=�$�%T��%T�%T�U�U�U�!������2�z�*�*�
G� �"8�9�9�9��D�#�&�&�

G�J��J�J�J�J��"�J�J�J�$�&I�J�J�J�J�����l�l�4�(�(�/����D�#�&�&�
G����� E�F�F�F��Q�w�w� �!I�C�!I�!I�J�J�J�6	��2�~�~��W�X�t�W�=�=��
��>�>�!#�!1�$�*�D�+9�%-�f�">�">�">�D�J��"�}�}� �g�g�t�W�=�=����>�>�"$�"2�4�;�%-�f�#>�#>�#>�D�K��"�}�}� �g�g�t�W�=�=����>�>�"$�"2�4�;�%-�f�#>�#>�#>�D�K�
����j�*�i� (�#�s� +�]�E� '�� '�� '�� /� #�T�3�� 1�=�
B�
B�
B�
B�
B��	��D�4�:�t�{�D�K�"H�I�I�
�
����G�G�I�I�I�I�������D������.�
����D�=�=��O�O�G�,�,�,��T�>�>��O�O�H�-�-�-��T�>�>��O�O�H�-�-�-��4��,�,�3��O�O�D�M�2�2�2�"���B��%�)�*�R��*@�*@�)��H�H�J�J�J�J��H�R�L�L�L���"����������
���s{�K�K�O
�
O$�
S�S)�DY�&^�8Z
�^�
Z�^�Z�B^�5A];�:^�;
^�^�^�^c��d|jj�d|j�d|j�d�}t	|��dkr
|dd�dz}|S)N�<z: returncode: z args: �>�P�Lz...>)rir)r2r�r�)r6�obj_reprs  r.rjzPopen.__repr__&sr��
B���'�
B�
B��?�
B�
B�37�9�
B�
B�
B�	��x�=�=�2�������}�v�-�H��r-c��|jSr1)r4r>s r.r�zPopen.universal_newlines1s���~�r-c�.�t|��|_dSr1)r0r4)r6r�s  r.r�zPopen.universal_newlines7s���0�1�1����r-c��|�||��}|�dd���dd��S)Nz
r��
)�decode�replace)r6r�r�r�s    r.�_translate_newlineszPopen._translate_newlines;s9���{�{�8�V�,�,���|�|�F�D�)�)�1�1�$��=�=�=r-c��|Sr1r,r>s r.�	__enter__zPopen.__enter__?s���r-c�V�|jr|j���|jr|j���	|jr|j���|tkrA|jdkr-	|�|j���n#t$rYnwxYwd|_dS|���dS#|tkrC|jdkr-	|�|j���n#t$rYnwxYwd|_YdS|���wxYw)Nrr�)	rBrDr5r��KeyboardInterruptr5�_waitrr�)r6�exc_typerE�	tracebacks    r.�__exit__zPopen.__exit__Bs_���;�	 ��K�������;�	 ��K������	��z�
#��
� � �"�"�"��,�,�,��)�A�-�-���
�
�4�+A�
�B�B�B�B��)����������)*��&���
�I�I�K�K�K�K�K��#�,�,�,��)�A�-�-���
�
�4�+A�
�B�B�B�B��)����������)*��&�����
�I�I�K�K�K�K���sH� C�9B�
B"�!B"�D(�C8�7D(�8
D�D(�D�D(�D(c���|jsdS|j�|d|jzt|���|�|���|j�#t
�t
�|��dSdSdS)Nzsubprocess %s is still running)�sourcerr)�_child_createdr2r/�ResourceWarningrurtr�)r6�_maxsize�_warns   r.rlz
Popen.__del__^s����"�	��F��?�"�
�E�2�T�X�=�!�$�
0�
0�
0�
0�	
���x��0�0�0��?�"�w�':��N�N�4� � � � � �#�"�':�':r-c��t|d��s.tjtjtj��|_|jS)Nr#)rr�r@�devnull�O_RDWRr#r>s r.�_get_devnullzPopen._get_devnullms3���t�Z�(�(�	;��G�B�J��	�:�:�D�M��}�r-c�^�|rU	|j�|��n9#t$rYn-t$r!}|jtjkrn�Yd}~nd}~wwxYw	|j���dS#t$rYdSt$r"}|jtjkrn�Yd}~dSd}~wwxYwr1)r��write�BrokenPipeErrorrr%�EINVALrD)r6r�r�s   r.�_stdin_writezPopen._stdin_writers����	�
��
� � ��'�'�'�'��"�
�
�
����
�
�
��9���,�,����D�D�D�D�����
����	��J����������	�	�	��D�D��	�	�	��y�E�L�(�(�������������	���s7��
A�	A�A�A�A4�4
B,�	B,�
B'�'B,c��	|jr|rtd���|��|js�|j|j|jg�d��dkr�d}d}|jr|�|��ns|jr3|j���}|j���n9|jr2|j���}|j���|�	��n�|�t��|z}nd}	|�|||��\}}np#t$rc|�)t|j|�|����}n|j}d|_	|�|���n#t"$rYnwxYw�wxYw	d|_n#d|_wxYw|�	|�|�����}||fS)Nz.Cannot send input after starting communicationr�rr�T)r+r=r�rBr5�countr��readrDr��_time�_communicaterm�minr5�_remaining_timernr)r6r�rMrBr5�endtime�sigint_timeout�stss        r.r�zPopen.communicate�s+��	�"�&�	O�5�	O��M�N�N�N�

�O�D�$?�O�
�Z���d�k�2�8�8��>�>�!�C�C��F��F��z�
$��!�!�%�(�(�(�(���
$���)�)�+�+����!�!�#�#�#�#���
$���)�)�+�+����!�!�#�#�#��I�I�K�K�K�K��"��'�'�G�+�����
3�!%�!2�!2�5�'�7�!K�!K������$�

�

�

��&�%(��)?�)-�)=�)=�g�)F�)F�&H�&H�N�N�&*�%;�N�)*��&���J�J�~�J�6�6�6�6��%�����D������

�����"/3��+�+��d��+�2�2�2�2��)�)�D�$8�$8��$A�$A�)�B�B�C����sC�D)�(F"�)AF�-F�F�
F�F�F�F�F"�"	F+c�,�	|���Sr1)rur>s r.r�z
Popen.poll�s��	��"�"�$�$�$r-c�.�	|�dS|t��z
Sr1)r�)r6r�s  r.r�zPopen._remaining_time�s��C��?��4��U�W�W�$�$r-c���	|�dS|st��|krFt|j||rd�|��nd|rd�|��nd����dS)Nr-r�)r�rr�r�)r6r��orig_timeout�
stdout_seq�
stderr_seq�skip_check_and_raises      r.�_check_timeoutzPopen._check_timeout�s���@��?��F��	I�5�7�7�W�#4�#4� ��I�|�3=�G�3�8�8�J�/�/�/�4�3=�G�3�8�8�J�/�/�/�4�I�I�I�
I�$5�#4r-c�8�	|�t��|z}	|�|���S#t$rc|�)t|j|�|����}n|j}d|_	|�|���n#t$rYnwxYw�wxYw)Nr�r)r�rnrmr�r5r�r)r6rMr�r�s    r.r�z
Popen.wait�s���K����g�g��'�G�	��:�:�g�:�.�.�.�� �	�	�	�
�"�!$�T�%;�%)�%9�%9�'�%B�%B�"D�"D���"&�!7��%&�D�"�
��
�
�>�
�2�2�2�2��!�
�
�
���
�����	���s.�,�AB�0B�B�
B�B�B�Bc���t|dd��}tj��5}tra|dkr|�|j��|dkr|�|j��|dkr|�|j��n�|dkr,|dkr&||kr |�tj|��|dkr,|dkr&||kr |�tj|��|dkr,|dkr&||kr |�tj|��|� |�tj|��ddd��n#1swxYwYd|_dS)Nr#r{T)	r��
contextlib�	ExitStackr��callbackrdr�rDr6)	r6rPrQrRrSrTrU�
devnull_fd�stacks	         r.�_close_pipe_fdszPopen._close_pipe_fdss���
�T�:�t�4�4�
�
�
!�
#�
#�	5�u��

7��b�=�=��N�N�7�=�1�1�1��r�>�>��N�N�8�>�2�2�2��r�>�>��N�N�8�>�2�2�2���b�=�=�X��^�^��:�8M�8M��N�N�2�8�W�5�5�5��r�>�>�g��m�m��J�8N�8N��N�N�2�8�X�6�6�6��r�>�>�g��m�m��J�8N�8N��N�N�2�8�X�6�6�6��%����r�x��4�4�4�#	5�	5�	5�	5�	5�	5�	5�	5�	5�	5�	5����	5�	5�	5�	5�('+��#�#�#s�D!E�E�Ec��	|�|�|�dSd\}}d\}}d\}}	|�\tjtj��}|�;tjdd��\}}
t	|��}tj|
��n�|tkr7tjdd��\}}t	|��t	|��}}n�|tkr'tj	|�
����}nPt|t��rtj	|��}n&tj	|�
����}|�|��}|�\tjtj��}|�;tjdd��\}
}t	|��}tj|
��n�|tkr7tjdd��\}}t	|��t	|��}}n�|tkr'tj	|�
����}nPt|t��rtj	|��}n&tj	|�
����}|�|��}|�\tjtj��}	|	�;tjdd��\}
}	t	|	��}	tj|
��n�|tkr7tjdd��\}}	t	|��t	|	��}	}n�|t"kr|}	n�|tkr'tj	|�
����}	nPt|t��rtj	|��}	n&tj	|�
����}	|�|	��}	||||||	fS)N)r{r{r{r{r{r{�r{r{r)rk�GetStdHandler�
CreatePiper`rcrrr2�
get_osfhandler{r,rf�fileno�_make_inheritablerrr)r6r�rBr5rPrQrRrSrTrU�_s           r.r1zPopen._get_handles!sv��
��}���F�N�/�/� &��G�X� &��G�X� &��G�X��}�!�.�w�/G�H�H���?�!(�!3�D�!�!<�!<�J�G�Q�$�W�o�o�G��'��*�*�*���$���$+�$6�t�Q�$?�$?�!���$*�7�O�O�V�H�5E�5E�����'�!�!� �.�t�/@�/@�/B�/B�C�C����E�3�'�'�
?� �.�u�5�5���!�.�u�|�|�~�~�>�>���,�,�W�5�5�G��~�"�/��0I�J�J���#�")�"4�T�1�"=�"=�K�A�x�%�h�/�/�H��'��*�*�*���4���$+�$6�t�Q�$?�$?�!���$*�7�O�O�V�H�5E�5E�����7�"�"�!�/��0A�0A�0C�0C�D�D����F�C�(�(�
A�!�/��7�7���"�/��
�
���@�@���-�-�h�7�7�H��~�"�/��0H�I�I���#�")�"4�T�1�"=�"=�K�A�x�%�h�/�/�H��'��*�*�*���4���$+�$6�t�Q�$?�$?�!���$*�7�O�O�V�H�5E�5E�����6�!�!�#����7�"�"�!�/��0A�0A�0C�0C�D�D����F�C�(�(�
A�!�/��7�7���"�/��
�
���@�@���-�-�h�7�7�H��X��X��X�'�
'r-c��	tjtj��|tj��ddtj��}t	|��S)Nrr�)rk�DuplicateHandle�GetCurrentProcess�DUPLICATE_SAME_ACCESSr`)r6�handle�hs   r.r�zPopen._make_inheritableisI��D��'��)�+�+�V��)�+�+�Q���-�/�/�A��!�9�9�r-c�6�	td�|D����S)Nc�h�h|]/}|dzdks"tj|��tjk�-|��0S)�)rk�GetFileType�FILE_TYPE_CHAR)�.0r�s  r.�	<setcomp>z,Popen._filter_handle_list.<locals>.<setcomp>ysT��4�4�4�F�"�S�L�C�/�/�#�/��7�7�#�2�3�3� �3�3�3r-)r])r6rZs  r.�_filter_handle_listzPopen._filter_handle_listrs7��
A��4�4�k�4�4�4�5�5�
5r-c�8�	t|t��rn�t|t��r"|
rtd���t	|g��}nKt|t
j��r"|
rtd���t	|g��}nt	|��}|�tj|��}|�t��}n|�	��}d|||fv}|r/|xj
tjzc_
||_
||_||_|j}t#|od|vo|d��}|s|r�|r�|�	ix}|_t%|�dg����x}|d<|r/|t)|��t)|��t)|��gz
}|�|��|dd�<|r|st-jdt0��d}|
r�|xj
tjzc_
tj|_|s�t
j�d��}|sot
j�dd	��}t
j�|d
d��}t
j�|��stAd���t
j�|��r|}n|}d
�!||��}|�tj|��}tEj#d||||��	tj$||ddt)|��|	|||�	�	\}}} }!|�%|||
|||��n#|�%|||
|||��wxYwd|_&tO|��|_(| |_)tj*|��dS)Nz$bytes args is not allowed on Windows�0path-like args is not allowed when shell is truer{rZz?startupinfo.lpAttributeList['handle_list'] overriding close_fdsF�ComSpec�
SystemRootr��System32zcmd.exez:shell not found: neither %ComSpec% nor %SystemRoot% is setz
{} /c "{}"�subprocess.PopenT)+r,r7�bytesr-r�r��PathLiker�r&r\rSrkrrTrUrVrXr0r]r�rfr�r�r�r.rrrW�environ�pathr��isabs�FileNotFoundErrorr�rv�audit�
CreateProcessr�rtr`�_handler/rc)"r6r�rFrGrHrOrIrJrKrLr�rPrQrRrSrTrU�unused_restore_signals�
unused_gid�unused_gids�
unused_uid�unused_umask�unused_start_new_session�unused_process_group�use_std_handles�attribute_list�have_handle_listrZ�comspec�system_root�hp�htr/�tids"                                  r.rBzPopen._execute_childs��
7��$��$�$�
*���D�%�(�(�

*��L�#�$J�K�K�K�#�T�F�+�+����D�"�+�.�.�
*��5�#�%4�5�5�5�#�T�F�+�+���#�D�)�)���%��[��4�4�
��"�)�m�m���*�.�.�0�0�� ��(�H�(E�E�O��
1��#�#�w�'C�C�#�#�(/��%�)1��&�(0��%�(�8�N�#�N�%B�$1�^�$C�%B�$2�=�$A� C� C��
 �
&�O�
&�	�
&�!�)�CE�E�N�[�%@���+�+�M�2�>�>�?�?�@��n�]�;�#�P��C��L�L�#�h�-�-��X���#O�O�K�!%�!9�!9�+�!F�!F��A�A�A���&�$�N� �
�'=�>L�N�N�N�!&�I��
;��#�#�w�'C�C�#�#�*1�/��'�!�)�!�j�n�n�Y�7�7�G�"�r�&(�j�n�n�\�2�&F�&F��"$�'�,�,�{�J�	�"R�"R��!�w�}�}�W�5�5�r�"3�4p�"q�"q�q��w�}�}�W�-�-�-�%,�
��(�G�#�*�*�G�T�:�:�����k�#�&�&���I�(�*�d�C��E�E�E�
8�#*�#8��T�)-�t�),��]�);�);�)6�),�),�)4�$6�$6� ��B��S��$�$�W�h�%,�h�%,�h�8�8�8�8���$�$�W�h�%,�h�%,�h�8�8�8�8����
#'�D��!�"�:�:�D�L��D�H����#�#�#�#�#s�;/M�M!c�t�	|j�*||jd��|kr||j��|_|jS�Nr)r2r�)r6rs�_WaitForSingleObject�_WAIT_OBJECT_0�_GetExitCodeProcesss     r.ruzPopen._internal_poll�sG��
���&�'�'���a�8�8�N�J�J�&9�&9�$�,�&G�&G�D�O��?�"r-c��	|�
tj}nt|dz��}|j�]tj|j|��}|tjkrt|j|���tj	|j��|_|jS)Ni�)
rk�INFINITErfr2�WaitForSingleObjectr��WAIT_TIMEOUTrr��GetExitCodeProcess)r6rM�timeout_millisr�s    r.rnzPopen._waits���?���!(�!1���!$�W�t�^�!4�!4����&� �4�T�\�5C�E�E���W�1�1�1�(���G�<�<�<�")�"<�T�\�"J�"J����?�"r-c�|�|�|�����|���dSr1)r�r�rD)r6�fh�buffers   r.�
_readerthreadzPopen._readerthreads-���M�M�"�'�'�)�)�$�$�$��H�H�J�J�J�J�Jr-c�Z�|jrht|d��sXg|_tj|j|j|jf���|_d|j_|j���|j	rht|d��sXg|_
tj|j|j	|j
f���|_d|j_|j���|jr|�
|��|j�[|j�|�|����|j���rt#|j|���|j	�[|j�|�|����|j���rt#|j|���d}d}|jr |j}|j���|j	r |j
}|j	���|r|dnd}|r|dnd}||fS)N�_stdout_buff)�targetr�T�_stderr_buffr)rBrr�r'�Threadr��
stdout_thread�daemon�startr5r��
stderr_threadr�r�r�r��is_aliverr�rD)r6r�r�r�rBr5s      r.r�zPopen._communicate$sI���{�
+�7�4��#@�#@�
+�$&��!�!�(��0B�/3�{�D�<M�.N�P�P�P��"�-1��"�)��"�(�(�*�*�*��{�
+�7�4��#@�#@�
+�$&��!�!�(��0B�/3�{�D�<M�.N�P�P�P��"�-1��"�)��"�(�(�*�*�*��z�
)��!�!�%�(�(�(�
�{�&��"�'�'��(<�(<�W�(E�(E�F�F�F��%�.�.�0�0�B�(���L�A�A�A��{�&��"�'�'��(<�(<�W�(E�(E�F�F�F��%�.�.�0�0�B�(���L�A�A�A��F��F��{�
$��*����!�!�#�#�#��{�
$��*����!�!�#�#�#�#)�2�V�A�Y�Y�d�F�"(�2�V�A�Y�Y�d�F��F�#�#r-c�~�	|j�dS|tjkr|���dS|tjkr&tj|jtj��dS|tjkr&tj|jtj��dStd�
|�����)NzUnsupported signal: {})r2r;�SIGTERM�	terminate�CTRL_C_EVENTr�r�r/�CTRL_BREAK_EVENTr=r��r6�sigs  r.�send_signalzPopen.send_signalVs���/���*����f�n�$�$���� � � � � ���+�+�+�����&�"5�6�6�6�6�6���/�/�/�����&�"9�:�:�:�:�:� �!9�!@�!@��!E�!E�F�F�Fr-c���	|j�dS	tj|jd��dS#t$r5tj|j��}|tjkr�||_YdSwxYw)Nr�)r2rk�TerminateProcessr��PermissionErrorr��STILL_ACTIVE)r6�rcs  r.r�zPopen.terminateds��)���*���
%��(���q�9�9�9�9�9��"�
%�
%�
%��/���=�=����-�-�-��"$������

%���s�(�;A'�&A'c���	d\}}d\}}d\}}	|�n�|tkr\tj��\}}|jdkr:t	t
d��r%tj|t
j|j��nL|tkr|���}n,t|t��r|}n|���}|�n�|tkr\tj��\}}|jdkr:t	t
d��r%tj|t
j|j��nL|tkr|���}n,t|t��r|}n|���}|�n�|tkr\tj��\}}	|jdkr:t	t
d��r%tj|	t
j|j��n|tkr(|dkr|}	nktj���}	nL|tkr|���}	n,t|t��r|}	n|���}	||||||	fS)Nr�r�F_SETPIPE_SZr{)rr��piperr�fcntlr�rr{r,rfr�rrv�
__stdout__)
r6r�rBr5rPrQrRrSrTrUs
          r.r1zPopen._get_handlesysG��
�!'��G�X� &��G�X� &��G�X��}���$���$&�G�I�I�!����=�1�$�$����)G�)G�$��K��%�*<�d�m�L�L�L���'�!�!��+�+�-�-����E�3�'�'�
)���� �,�,�.�.���~���4���$&�G�I�I�!����=�1�$�$����)G�)G�$��K��%�*<�d�m�L�L�L���7�"�"��,�,�.�.����F�C�(�(�
+�!���"�=�=�?�?���~���4���$&�G�I�I�!����=�1�$�$����)G�)G�$��K��%�*<�d�m�L�L�L���6�!�!��r�>�>�'�H�H�"�~�4�4�6�6�H�H��7�"�"��,�,�.�.����F�C�(�(�
+�!���"�=�=�?�?���X��X��X�'�
'r-c���	|�tj}i}|r9g}dD]/}
tt|
d��}|�|�|���0||d<g}|||	fD])}|dkr!|�tj|f���*|df|df|
dffD]-\}}|dkr"|�tj||f���.|r||d<tj|||fi|��|_d|_	|�
|||||	|
��dS)	N)�SIGPIPE�SIGXFZ�SIGXFSZ�	setsigdefr{rr�r��file_actionsT)r�r�r�r;r��POSIX_SPAWN_CLOSE�POSIX_SPAWN_DUP2rr/rtr�)r6r�rFrJrMrPrQrRrSrTrUr��sigset�signame�signumr�r\�fd2s                  r.�_posix_spawnzPopen._posix_spawn�sh��
:��{��j���F��
-���?�.�.�G�$�V�W�d�;�;�F��)��
�
�f�-�-�-��&,��{�#��L���'�2�
D�
D����8�8� �'�'��)=�r�(B�C�C�C���!���1�
��1�
��
H�
H���C�
��8�8� �'�'��)<�b�#�(F�G�G�G���
6�)5��~�&��~�j�$��F�F�v�F�F�D�H�"&�D��� � ��(�!(�(�!(�(�
4�
4�
4�
4�
4r-c�*
��	t|ttf��r|g}n>t|tj��r|
rtd���|g}nt
|��}|
r'ttd��rdnd}|dg|z}�r�|d<��|d�tj	d�|||��trtj����r`|�^|s\|sZ|�X|dks|d	krL|dks|d	kr@|dks|d	kr4|s2|dkr,|�*|�(|�&|dkr |�
|�|||||
|||�
�
dS�}tj��\}}g}|d
kr/|�|��tj|��}|d
k�/|D]}tj|���		|�qg}|���D]Y\}} tj|��}d|vrt)d���|�|dztj| ��z���Znd}tj����tj����r�f}!n-t+�fd
�tj|��D����}!t/|��}"|"�|��t3||!|t+t5t7t8|"������|||||
|||||||||||||t:��|_d|_tj|��n#tj|��wxYw|� |||
|||��tC��}#	tj"|d��}$|#|$z
}#|$rtG|#��dkrn�1	tj|��n#tj|��wxYw|#�r]	tj$|jd��\}%}&|%|jkr|�%|&��ntj&|_'n#tP$rYnwxYw	|#�)dd	��\}'}(})|)�*��})n6#t($r)d}'d}(d�+t|#����})YnwxYwtYtZ|'�*d��t\��}*t_|*t`��rH|(rFt9|(d��}+|)dk},|,rd})|}-n|}-|+dkrtj1|+��})|*|+|)|-���|*|)���dS)Nr��getandroidapilevelz/system/bin/shz/bin/shz-crr�r{r�r��=z!illegal environment variable namec3�|�K�|]6}tj�tj|�����V��7dSr1)r�r�r��fsencode)r��dirrFs  �r.�	<genexpr>z'Popen._execute_child.<locals>.<genexpr>5sQ�����0>�0>� #��G�L�L���S�)9�)9�:�F�F�0>�0>�0>�0>�0>�0>r-TiP��:sSubprocessError�0z#Bad exception data from child: {!r}�ascii��noexecr�)2r,r7r�r�r�r-r]rrvr��_USE_POSIX_SPAWNr��dirnamerr�r��duprDr�rr=r�
get_exec_path�set�add�
_fork_exec�sortedr�rf�
_USE_VFORKr/rtr��	bytearrayr�r��waitpid�_handle_exitstatusrwr2�ChildProcessErrorrrgr�r��builtinsr�
issubclassr�strerror).r6r�rFrGrHrOrIrJrKrLr�rPrQrRrSrTrUrMrVrWrZrrNr�
unix_shell�orig_executable�errpipe_read�
errpipe_write�low_fds_to_close�low_fd�env_list�kr��executable_list�fds_to_keep�errpipe_data�partr/r��exception_name�	hex_errno�err_msg�child_exception_type�	errno_num�child_exec_never_called�err_filenames.  `                                           r.rBzPopen._execute_child�s3���
2��$��e��-�-�
"��v����D�"�+�.�.�
"��5�#�%4�5�5�5��v����D�z�z���
)�"�#�';�<�<�L�.�.�BK��"�D�)�D�0���)�(�D��G��!�!�!�W�
��I�(�*�d�C��E�E�E� �
�����
�3�3�
�"�*�%�+�$�+��� �B���'�A�+�+�!�R���8�a�<�<�!�R���8�a�<�<�-�,8�%��+�+���������	�	��!�!�$�
�C��")�8�")�8�")�8�5�5�5���(�O�
+-�'�)�)�'�L�-�!���!�#�#� �'�'�
�6�6�6� "��}� 5� 5�
� �!�#�#�+�
!�
!����� � � � �7
'�&,���#%��$'�I�I�K�K�G�G�D�A�q� "��A���A�#�q�y�y�&0�1T�&U�&U� U�$�O�O�A��H�r�{�1�~�~�,E�F�F�F�F�	G�$(��!#��Z�!8�!8�J��w���z�2�2�>�+5�-���+0�0>�0>�0>�0>�')�'7��'<�'<�0>�0>�0>�+>�+>��#&�h�-�-�K��O�O�M�2�2�2�)� �/�%�u�V�C��[�4I�4I�-J�-J�'K�'K���#�X�w��#�X�(�-�+�->�)�3��c�5�&�
�	 4�	 4�D�H�+/�D�'��H�]�+�+�+�+��B�H�]�+�+�+�+�����$�$�W�h�%,�h�%,�h�8�8�8� )�{�{����7�<��7�7�D� �D�(�L���3�|�#4�#4�u�#<�#<��	�����&�&�&�&�����&�&�&�&�����%
4��!�z�$�(�A�6�6�H�C���d�h����/�/��4�4�4�4�*-�+�����(�����D�����7�(�.�.�t�Q�7�7�7�N�I�w�
&�n�n�.�.�G�G��!�7�7�7�%7�N� $�I�C�J�J�"'��"5�"5�7�7�G�G�G�7����
(/� �.�"7�"7��"@�"@�'�()�()�$��2�G�<�<�Q��Q� #�I�r� 2� 2�I�/6�(�/B�+�.�7�"$��'*���'6�� �A�~�~�"$�+�i�"8�"8��.�.�y�'�<�P�P�P�*�*�7�3�3�3�K%
4�%
4sE�E L�<N�L'�'AN�N0�7AP�
P�P�.Q�0Q:�9Q:c�d�	||��r||��|_dS||��|_dSr1)r2)r6r��_waitstatus_to_exitcode�_WIFSTOPPED�	_WSTOPSIGs     r.rzPopen._handle_exitstatus�sG��
M��{�3���
?�#,�9�S�>�>�/�����"9�"9�#�">�">����r-c���	|j��|j�d��sdS	|j� |j|j���S||j|��\}}||jkr|�|��n3#t$r&}|�||_n|j|krd|_Yd}~nd}~wwxYw|j���n#|j���wxYw|jS)NFr)r2r)�acquire�releaser/rrr%)r6rs�_waitpid�_WNOHANG�_ECHILDr/r��es        r.ruzPopen._internal_poll�s��
���&��)�1�1�%�8�8� � �4�1���2�#���&�.�.�0�0�0�0� (�x���(�;�;�H�C���d�h����/�/��4�4�4����	,�	,�	,�!�-�*4������G�+�+�+,������������	,�����&�.�.�0�0�0�0��D�&�.�.�0�0�0�0�����?�"s5�
B�
4B�C�
B2�B-�(C�-B2�2C�C*c�|�		tj|j|��\}}n#t$r|j}d}YnwxYw||fSr�)r�rr/r)r6�
wait_flagsr/r�s    r.�	_try_waitzPopen._try_wait�s\��L�
��Z���*�=�=�
��c�c��$�
�
�
��h������
������:�s�!�7�7c��	|j�|jS|��Ct��|z}d}	|j�d��r�	|j�	|j����nj|�tj��\}}||jkr1|�	|��	|j����n	|j���n#|j���wxYw|�
|��}|dkrt|j|���t|dz|d��}tj|����/|j�r|j5|j�
	ddd��nV|�d��\}}||jkr|�	|��ddd��n#1swxYwY|j�r|jS)Ng����Mb@?TFrr�g�������?)r2r�r)r;r<rCr��WNOHANGr/rr�rr�r��time�sleep)r6rMr��delayr/r��	remainings       r.rnzPopen._wait�s?��=���*���&��"��'�'�G�+����&��)�1�1�%�8�8�
9�	9�#��:� %�!�.�6�6�8�8�8�8�
*.����
�)C�)C�J�S�#�"�d�h��� $� 7� 7�� <� <� <� %� �.�6�6�8�8�8�8�	 /�!�.�6�6�8�8�8�8��D�.�6�6�8�8�8�8���� $� 4� 4�W� =� =�I� �A�~�~�,�T�Y��@�@�@����	�9�c�:�:�E��J�u�%�%�%�!&�$�o�-��+�9�9��?�6�!�9�9�9�9�9�9�9�&*�^�^�A�%6�%6�
��c��$�(�?�?� �3�3�C�8�8�8�9�9�9�9�9�9�9�9�9�9�9����9�9�9�9��o�-��?�"s+�C�%AC�C9�$	F=�98F=�=G�Gc�<	�|jr_|jsX	|j���n#t$rYnwxYw|s+	|j���n#t$rYnwxYwd}d}|js3i|_|jrg|j|j<|jrg|j|j<|jr|j|j}|jr|j|j}|�|��|j	rt|j	��}t��5}|jr'|r%|�|jtj��|jr1|jjs%|�|jtj��|jr1|jjs%|�|jtj��|����r|�|��}|�/|dkr)|�||||d���t)d���|�|��}	|�||||��|	D�]v\}
}|
j|jur�||j|jt0z�}	|xjt3j|
j|��z
c_|jt9|j	��kr3|�|
j��|
j�����#t$r6|�|
j��|
j���Y��wxYw|
j|j|jfvrtt3j|
jd��}
|
s3|�|
j��|
j���|j|
j�|
����x|�����ddd��n#1swxYwY|� |�|�����|�d�!|��}|�d�!|��}|j"rZ|�+|�#||jj$|jj%��}|�+|�#||jj$|jj%��}||fS)NrT)r�zN_check_timeout(..., skip_check_and_raise=True) failed to raise TimeoutExpired.i�r�r-)&r�r+�flushr~rD�_fileobj2outputrBr5�_save_inputr*�
memoryview�_PopenSelector�register�	selectors�EVENT_WRITErb�
EVENT_READ�get_mapr�r��RuntimeError�select�fileobj�
_input_offset�	_PIPE_BUFr�r}r\r��
unregisterr�r�r�r�r4rir�r�)r6r�r�r�rBr5�
input_view�selectorrM�ready�key�events�chunkr�s              r.r�zPopen._communicate�sU���z�
�$�"=�
���J�$�$�&�&�&�&��&�����D���������
�(�(�*�*�*�*��*�����������F��F��.�
;�')��$��;�;�8:�D�(���5��;�;�8:�D�(���5��{�
;��-�d�k�:���{�
;��-�d�k�:�����U�#�#�#��{�
5�'���4�4�
��!�!�*
K�X��:�I�%�I��%�%�d�j�)�2G�H�H�H��;�I�t�{�'9�I��%�%�d�k�9�3G�H�H�H��;�I�t�{�'9�I��%�%�d�k�9�3G�H�H�H��&�&�(�(�"K�"�2�2�7�;�;�G��*�w��{�{��+�+�G�\�,2�F�AE�,�G�G�G�+�>�?�?�?�%�O�O�G�4�4�E��'�'���v�v�N�N�N�
(-�K�K���V��;�$�*�4�4�$.�t�/A�/3�/A�I�/M�0N�%O�E�8� $� 2� 2�b�h�s�v�u�6M�6M� M� 2� 2�
$(�#5��T�[�9I�9I�#I�#I�$,�$7�$7���$D�$D�$D�$'�K�$5�$5�$7�$7�$7���
$3�4�4�4� (� 3� 3�C�K� @� @� @� #�� 1� 1� 3� 3� 3� 3� 3�4����!�[�T�[�$�+�,F�F�F�#%�7�3�6�5�#9�#9�D�#'�4� (� 3� 3�C�K� @� @� @� #�� 1� 1� 3� 3� 3� �0���=�D�D�T�J�J�J��E�&�&�(�(�"K�*
K�*
K�*
K�*
K�*
K�*
K�*
K�*
K�*
K�*
K�*
K����*
K�*
K�*
K�*
K�X
�I�I�d�2�2�7�;�;�I�<�<�<��!����&�)�)���!����&�)�)���~�
J��%�!�5�5�f�6:�k�6J�6:�k�6H�J�J�F��%�!�5�5�f�6:�k�6J�6:�k�6H�J�J�F��F�#�#sV�*�
7�7�A�
A$�#A$�EO�/(K(�AO�(=L(�%O�'L(�(B#O�O�Oc���|jrT|j�Od|_||_|�A|jr<|j�|jj|jj��|_dSdSdSdSdSr�)r�r*rXr4�encoder�r�)r6r�s  r.rMzPopen._save_inputLs����z�
H�d�k�1�%&��"�#����$���$�"&�+�"4�"4�T�Z�5H�59�Z�5F�#H�#H�D�K�K�K�	
H�
H�1�1�%�$�$�$r-c��	|���|j�dS	tj|j|��dS#t
$rYdSwxYwr1)r�r2r�r�r/�ProcessLookupErrorr�s  r.r�zPopen.send_signalXsb��/�"
�I�I�K�K�K���*���

�����#�&�&�&�&�&��%�
�
�
����
���s�<�
A
�	A
c�F�	|�tj��dSr1)r�r;r�r>s r.r�zPopen.terminatex�#��
����V�^�,�,�,�,�,r-c�F�	|�tj��dSr1)r�r;�SIGKILLr>s r.r�z
Popen.kill}rfr-)r{NNNNNTFNNNNrTFr,rG)Fr1)8r)r*r+rtr7rjr�r�r�r�rIr�rJrirkrqrvrwr�r�rlr{r�r�r�r�r�r�r�r�r1r�r�rBrkr��
WAIT_OBJECT_0r�rurnr�r�r�r�r�rr7r8r9rr=r>r%�ECHILDrCrMr,r-r.rr�sk������6�n�N�48�15�,0�EI�12�9>��
}�'+�$�T��t�$�b�2�#�}�}�}�}�}�~���$��E�$6�7�7��
����X��
��2�2���2�>�>�>�������8 #�{�(�-�
!�
!�
!�
!����
���2A �A �A �A �H%�%�%�%�%�%�-2�	I�	I�	I�	I�����.+�+�+�:�c
-�E	'�E	'�E	'�P	�	�	�
	5�
	5�
	5�}	$�}	$�}	$�~-1�%,�%@�&�4�$+�$>�	#�	#�	#�	#�"
	#�
	#�
	#� 	�	�	�
0	$�0	$�0	$�d	G�	G�	G�
	%�
	%�
	%�����9	'�9	'�9	'�x%	4�%	4�%	4�Nb	4�b	4�b	4�L8O�+6�)2�
	?�
	?�
	?�
	?�-1�8�!�5�<� 	#� 	#� 	#� 	#�F
	�
	�
	�&	#�&	#�&	#�Rc	$�c	$�c	$�L		H�		H�		H�	�	�	�@	-�	-�	-�
	-�	-�	-�	-�	-r-r)[r r%r?r�r�rFr;rvr'r�r�rr�r�r�r9�__all__r2r��ModuleNotFoundErrorr	r$rkrrrrrrrrrrrrr r!r"r#r$r%r��_posixsubprocessr'rrr=�waitstatus_to_exitcoder7�
WIFSTOPPEDr8�WSTOPSIGr9rEr>rVrQ�	Exceptionrr
rr&rfr`r�rYrrnrO�SelectSelectorrtrprrrr�r�r�rrr�objectrrr�r	r
rrrrr,r-r.�<module>rts��� �D��������	�	�	�	�
�
�
�
�	�	�	�	�����
�
�
�
�
�
�
�
�������������#�#�#�#�#�#�������L�L�L�L�������E�E�E�����D�D�D����M�M�M��J�J�������J�J�J�������%;�;��
�'��N�N�N�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O�O��N�N�	N�	N�	N�	O�	O�	O�	O���<�<�<�<�<�<��:��"$�";���m���K�	��:����
���"&�����	����M�M�M�����'�&�&�&�&�i�&�&�&�"�"�"�"�"��"�"�"�J�����_����8�62�:�:�:�:�:�:�:�:�.����������,���
�C�0�0�I�
�w�y�.�)�)�2�"�/���"�1�����G�
�
�
�
��G����
��	��
�����:�:�:�z$�$�$�("������"
�
�
�&&*�2 �2 �2 �2 �2 �j!2�!2�!2�!2�!2�v�!2�!2�!2�J�5�$�e�CC�CC�CC�CC�CC�LC�C�C�R&*�$������@ $�D�
E�
E�
E�
E�
E�-�-�-�d$�#�%�%��
�
�S-�S-�S-�S-�S-�S-�S-�S-�S-�S-s!�>�A�A�A�A!� A!

ZeroDay Forums Mini