403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.145
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python315/Lib/asyncio/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/asyncio/__pycache__/unix_events.cpython-315.opt-1.pyc
R
>lqj�c�T�Qs]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PH s]PH$s	]PH(s
]PH,s]PH0s]QH4Gs]QH4Gs]QH4Gs]QH4Gs]QH4Gs]QH4Gs]QH4Gs]QH4Gs]Q	H4Gs]Q
H4Gs]QH`GsQs\
O6Q6Xc	\Q
2gQsQsQQ\O>2s QQ\OB2s"QQ\OF\OH2s%QQ\OL2s'QQ2s(QQ2s)Qs*QQ\OV2s,\ s-\,s.\-s/P!) z2Selector event loop for Unix with signal handling.)�base_events)�base_subprocess)�	constants)�
coroutines)�events)�
exceptions)�futures)�selector_events)�tasks)�
transports)�logger�win32z+Signals are not really supported on Windowsc��P!)zDummy signal handler.�)�signum�frames&&�(C:\Python315\\Lib\asyncio\unix_events.py�_sighandler_noopr's���c�X�[OU2![cSt!h9h�N)�os�waitstatus_to_exitcode�
ValueError)�statuss&rrr,s.����(�(��0�0�����
�	�s��	)�)�)c�``�\sQs]6snQsQU1QkksU1QksQsQsQs	Qs
QsQQ	ksQQ
ks
QQksQsQQ
PQPQPQPQP-QkksQQPQ]dQ
PQPQPQP	QP	-QkksQsQsQsQsU1QksQsUsU9s!)�_UnixSelectorEventLoopz\Unix event loop.

Adds signal handling and UNIX Domain Socket support to
SelectorEventLoop.
c�:�[RU_U2-Um-Um[	2%c[2UmP![2UmP!r)�super�__init__�_signal_handlers�_unix_server_sockets�
can_use_pidfd�_PidfdChildWatcher�_watcher�_ThreadedChildWatcher)�self�selector�	__class__s&&�rr�_UnixSelectorEventLoop.__init__=s;���
����"� "���$&��!��?�?�.�0�D�M�1�3�D�Mrc�\:�[RU_2[O2%f1[	UO
2FDoUO
U2J	P!UO
%c?[OQU8Q0[UQ5UO
O2P!P!)zClosing the loop z@ on interpreter shutdown stage, skipping signal handlers removal��source)r�close�sys�
is_finalizing�listr�remove_signal_handler�warnings�warn�ResourceWarning�clear)r%�sigr's& �rr,�_UnixSelectorEventLoop.closeFs����
��
��� � �"�"��D�1�1�2���*�*�3�/�3��$�$�$��
�
� 1�$��:H�I�.�%)�	+�
�%�%�+�+�-�
%rc�R�SFDoU%fJ
UOU2J 	P!r)�_handle_signal)r%�datars&& r�_process_self_data�)_UnixSelectorEventLoop._process_self_dataTs ���F�������'�	rc��[OU2%f[OU2%c[Q2gUO	U2UO2[OUOO22[OV#UP2oVPO U$[OU["2[O$UP
2P![[1co[[S22gPo=hh9h[c�oSO SSO %fN[OP2L5[[1c"o[&O(QS2Po=LPo=hh9hSO*[*O,6Xc[QSQ02ggPo=hh9h)z�Add a handler for a signal.  UNIX only.

Raise ValueError if the signal number is invalid or uncatchable.
Raise RuntimeError if there is a problem setting up the handler.
z3coroutines cannot be used with add_signal_handler()�set_wakeup_fd(-1) failed: %s�sig � cannot be caught)r�iscoroutine�_iscoroutinefunction�	TypeError�
_check_signal�
_check_closed�signal�
set_wakeup_fd�_csock�filenor�OSError�RuntimeError�strr�Handlerr�siginterruptr�info�errno�EINVAL)r%r5�callback�args�exc�handle�nexcs&&&*   r�add_signal_handler�)_UnixSelectorEventLoop.add_signal_handler[sv��
�"�"�8�,�,��/�/��9�9��8�9�
9����3������	)�

� � ����!3�!3�!5�6����x�t�T�:��%+���c�"�	�
�M�M�#�/�0�
����U�+���G�$�	)��s�3�x�(�(��	)���	��%�%�c�*��(�(�(�F��(�(��,��"�G�,�F��K�K� >��E�E��F���y�y�E�L�L�(�"�T�#��.?�#@�A�A���	�sr�'.C0�<2D�0D�D�D�D�	G�'G�(G�E�G�F�/F�0F�G�F�!G�3G�Gc��UOOU2oUeP!UO%cUOU2P!UO	U2P!)z2Internal helper that is the actual signal handler.)r�get�
_cancelledr0�_add_callback_signalsafe)r%r5rTs&& rr8�%_UnixSelectorEventLoop._handle_signal�sH���&�&�*�*�3�/���>�������&�&�s�+��)�)�&�1rc�J�UOU2UOUU[O6Xc[O
oL[Oo[OV2UO%f[OP2P	!P	![cP
!h9h[c5oSO[O6Xc[QSQ02ggPo=hh9h[[1c#o[OQS2Po=P	!Po=hh9h)zgRemove a handler for a signal.  UNIX only.

Return True if a signal handler was removed, False if not.
r>r?r=)rCr�KeyErrorrE�SIGINT�default_int_handler�SIG_DFLrIrOrPrJrFrrrN)r%r5�handlerrSs&&  rr0�,_UnixSelectorEventLoop.remove_signal_handler�s���
	
���3��	��%�%�c�*��&�-�-���0�0�G��n�n�G�	��M�M�#�'��$�$�$�
A��$�$�R�(���-�	��	���	��y�y�E�L�L�(�"�T�#��.?�#@�A�A���		����(�
A����:�C�@�@���
A�sY�
B�B-�C/�	B*�%B*�)B*�-	C,�7C,�8C'�C'�'C,�/D"�?D"�D�D"c��[U[2%f[QU802gU[O27c[QU02gP!)z�Internal helper to validate a signal.

Raise ValueError if the signal number is invalid or uncatchable.
Raise RuntimeError if there is a problem setting up the handler.
zsig must be an int, not zinvalid signal number )�
isinstance�intrBrE�
valid_signalsr)r%r5s&&rrC�$_UnixSelectorEventLoop._check_signal�sM���#�s�#�#��6�s�g�>�?�?��f�*�*�,�,��5�c�U�;�<�<�-rc��[VV#U2!r)�_UnixReadPipeTransport�r%�pipe�protocol�waiter�extras&&&&&r�_make_read_pipe_transport�0_UnixSelectorEventLoop._make_read_pipe_transport�s��%�d�(�E�J�Jrc��[VV#U2!r)�_UnixWritePipeTransportrks&&&&&r�_make_write_pipe_transport�1_UnixSelectorEventLoop._make_write_pipe_transport�s��&�t�8�U�K�Krc	
�� �UOo
UO2o[VV#VEVg1QUQU-U	@oU
OUO	2UO
U2UEPiw�K
U!K[[1cg[cBSO2[OSO22EPiw�K
gh9h3h)rnro)
r#�
create_future�_UnixSubprocessTransport�add_child_handler�get_pid�_child_watcher_callback�
SystemExit�KeyboardInterrupt�
BaseExceptionr,r	�shield�_wait)
r%rmrR�shell�stdin�stdout�stderr�bufsizero�kwargs�watcherrn�transps
&&&&&&&&&,   r�_make_subprocess_transport�1_UnixSelectorEventLoop._make_subprocess_transport�s�����-�-���#�#�%��)�$�$�(-�v�2�/5�2�=B�2�+1�2��	�!�!�&�.�.�"2� $� <� <�f�	F�	��L�L��
�
���-�.�	���	��L�L�N��,�,�v�|�|�~�.�.�.��	�sH�AC� A0�&A.�'A0�,C�.A0�0C
�
C
�9C
�C�C
�
Cc�*�UOU2P!r)�_process_exited)r%�pid�
returncoder�s&&&&rr{�._UnixSelectorEventLoop._child_watcher_callback�s�����z�*r�ssl�sock�server_hostname�ssl_handshake_timeout�ssl_shutdown_timeoutc	�� �U%cUe[Q2gL-Ud[Q2gUd[Q2gUd[Q2gUd�Ud[Q2g[OU2o[O[O[O
]2oUO
P
2UOVB2EPiw�K
LmUe[Q2gUO[O6wf UO[O
6wc[QU802gUO
P
2UOVAV5UUQ5EPiw�K
vq�V�1!K�SO2g9hK!3h)	Nz/you have to pass server_hostname when using sslz+server_hostname is only meaningful with ssl�1ssl_handshake_timeout is only meaningful with ssl�0ssl_shutdown_timeout is only meaningful with ssl�3path and sock can not be specified at the same timezno path and sock were specified�.A UNIX Domain Stream Socket was expected, got )r�r�)rr�fspath�socket�AF_UNIX�SOCK_STREAM�setblocking�sock_connectr,�family�type�_create_connection_transport)
r%�protocol_factory�pathr�r�r�r�r��	transportrms
&&&$$$$$  r�create_unix_connection�-_UnixSelectorEventLoop.create_unix_connection�s������&� �E�G�G�'��*� �!N�O�O�$�0� �G�I�I�#�/� �F�H�H����� �I�K�K��9�9�T�?�D��=�=�����1C�1C�Q�G�D�
�� � ��'��'�'��3�3�3��|� �!B�C�C����v�~�~�-��I�I��!3�!3�3� �D�T�H�M�O�O����U�#�$(�$E�$E��C�"7�!5�%F�%7�7�7��	��"�"�%4��
��
�
����7�ss�	E?�E?�E?�E?�E?�E?�
E?�AE?�'&E'�
E%�E'�E?�)E?�E?�!9E?�E=�
E?�%E'�'E:�:E?�backlog�
start_serving�cleanup_socketc	�� �[U[2%c[Q2gUdU%f[Q2gUdU%f[Q2gUd�Ud[Q2g[O
U2o[O[O[O2oU]*Q	7cR[O[OU2O2%c[OU2UO#U2L\Ue[Q2gUO*[O6wf UO,[O6wc[QU802gU	%cMUO/2oU]*Q	7c/[OU2O0UO2U$UO5P
2[6O8V,UVTUU2o
U%c1U
O;2[<O>]2EPiw�K
U
![cCK7[c#o
[O QX*2Po
=
CK^Po
=
hh9h[cXoSO%2SO&[&O(6Xc#QS8Q0o[[&O(S2PggPo=hSO%2g9h[cCK'h9hK�3h)
z*ssl argument must be an SSLContext or Noner�r�r�z2Unable to check or remove stale UNIX socket %r: %rzAddress z is already in usez-path was not specified, and no sock specifiedr�)��) re�boolrBrrr�r�r�r��stat�S_ISSOCK�st_mode�remove�FileNotFoundErrorrIr�error�bindr,rO�
EADDRINUSEr�r��getsockname�st_inor r�r�Server�_start_servingr	�sleep)r%r�r�r�r�r�r�r�r�r��errrS�msg�servers&&&$$$$$$$    r�create_unix_server�)_UnixSelectorEventLoop.create_unix_servers�����c�4� � ��H�I�I� �,�S��C�E�
E� �+�C��B�D�
D����� �I�K�K��9�9�T�?�D��=�=�����1C�1C�D�D��A�w�k�)�6��}�}�R�W�W�T�]�%:�%:�;�;��	�	�$��

��	�	�$���|� �C�E�E����v�~�~�-��I�I��!3�!3�3� �D�T�H�M�O�O���#�#�%�D��A�w�k�)��68�g�g�d�m�6J�6J�D�-�-�d�3�	
������#�#�D�&�2B�$'�2G�$8�:����!�!�#��+�+�a�.� � ��
��e)����6��L�L�"*�+/�6�6��6���
��
�
���9�9�� 0� 0�0�%�T�H�,>�?�C�!�%�"2�"2�C�8�d�B���
��
�
����")�����
!�s��K>�K>�K>�K>�K>�K>�K>�A!K>�>9H7�8H7�I4� K>�%)K>�K>�.K>�K>�$-K*�3K>�*K>�/K<�0K>�7	I1�I1�K>�I1�I1�I,�&K>�,I1�1K>�4	K'�>K'�?.K�.#K�K'�'K>�*	K9�4K9�5K>�8K9�9K>c
��$ �[OUO2o[OU2OoU%cSLSoU%f]!UO2oUOUPVV4U]2UEPiw�K
![c[OQ2gh9h[[O1c[OQ2gh9h[c[OQ2gh9hK�3h)zos.sendfile() is not availableznot a regular file)
r�sendfile�AttributeErrorr�SendfileNotAvailableErrorrH�io�UnsupportedOperation�fstat�st_sizerIrw�_sock_sendfile_native_impl)	r%r��file�offset�countrH�fsize�	blocksize�futs	&&&&&    r�_sock_sendfile_native�,_UnixSelectorEventLoop._sock_sendfile_nativecs���	2��K�K�	M��[�[�]�F�	M��H�H�V�$�,�,�E�#�E��	���� � �"���'�'��T�4�(.�y�!�	E��y�y���%�	2��6�6�0�2�
2�	2��
�� 7� 7�8�	M��6�6�7K�L�L�	M���	M��6�6�7K�L�L�	M���sh�D�B�B4� C)�D�D�.D�	D�
D�	B1�B1�1D�4C&�C&�&D�)	D�3D�Dc	
�H�UO2o	UdUOU2UO2%cUOVE2P!U%c4Vh*
oU]6:c%UOVE2UO	U2P![U[O]*]*2o[OV�VW2o
U
]6Xc%UOVE2UO	U2P!VZ*
oV�*
oUeUOV2UOV�OUV�UVVVx2
P![[1c:SeSOX2SOX�OSX�SXVXx2
P![c�oSdUSO [ O"6Xc6[%S2[&Ic#['Q[ O"2oX�mSoS]6Xc?[*O,Q2o
SOXE2SO/S
2Po=P!SOXE2SO/S2Po=P!Po=h[0[21cg[4c.oSOXE2SO/S2Po=P!Po=hh9h)Nzsocket is not connectedzos.sendfile call failed)rH�
remove_writer�	cancelled�_sock_sendfile_update_filepos�
set_result�minr-�maxsizerr��_sock_add_cancellation_callback�
add_writerr��BlockingIOError�InterruptedErrorrIrO�ENOTCONNr��ConnectionError�	__cause__rr��
set_exceptionr|r}r~)r%r��
registered_fdr�rHr�r�r��
total_sent�fd�sentrS�new_excr�s&&&&&&&&&     rr��1_UnixSelectorEventLoop._sock_sendfile_native_implzs5��
�[�[�]���$�

���}�-��=�=�?�?��.�.�v�>����*�I��A�~��2�2�6�B����z�*���	�3�;�;��>�A�#5�6�	�1	F��;�;�r�6�=�D�J�q�y��2�2�6�B����z�*�����"�
� �(��8�8��C�����$C�$C�S� "�&� &�y�F��[ �!1�2�	B��$��4�4�S�?��O�O�B� ?� ?���f�"�9�
B��	'��)��I�I����/���I�_�4�
*�-�u�~�~�?��$'�!����Q��
!�:�:�-�/���2�2�6�B��!�!�#�&�&��2�2�6�B��!�!�#�&�&���-�.�	���	#��.�.�v�>����c�"�"��	#�sf�4D=�=J!�
J!�1J!�J!�J!�I�I�3I�(I�/8I�-"I�J!�(
J!�3J!�4"J�J!c�R�[OV[O2P!r)r�lseek�SEEK_SET)r%rHr�s&&&rr��4_UnixSelectorEventLoop._sock_sendfile_update_filepos�s��
�������-rc�<``�UU1QkoUOU2P!)c�:�UO2%c-RO2oUP6wcROU2P!P!P!)�)r�rHr�)r�r�r%r�s& ��r�cb�B_UnixSelectorEventLoop._sock_add_cancellation_callback.<locals>.cb�s8����}�}����[�[�]����8��&�&�r�*��r)�add_done_callback)r%r�r�r�sf&f rr��6_UnixSelectorEventLoop._sock_add_cancellation_callback�s���	+�
	���b�!rc�:�VO7cUO2oLPo[RU_
U2UdaUOU*oUOU[O
U2OU6Xc[OU2P!P!P![cP![c#o[OQX$2Po=P!Po=hh9h)Nz/Unable to clean up listening UNIX socket %r: %r)r r�r�
_stop_servingrr�r��unlinkr�rIrr�)r%r�r��prev_inor�r's&&   �rr��$_UnixSelectorEventLoop._stop_serving�s�����,�,�,��#�#�%�D��D�
���d�#����0�0��6�H��)�)�$�/�
2��7�7�4�=�'�'�8�3��I�I�d�O�4�	��%�
���
2����&�'+�2�2��
2�s0�$B�?B�	C�%C�)C�2C�3C�C)rr r#r�NN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr,r:rVr8r0rCrprtr�r{r�r�r�r�r�r�r��__static_attributes__�__classdictcell__�
__classcell__�r'�
__classdict__s@@rrr6s������4�.�(�+�Z2��@
=�K�L��,+�0#��0#��0#�!�0#�#'�	0#�
"&�0#�dP��P�"�P�(,�P�#'�P�"&�	P�
�P�
04�P�d�.GF�R.�"�2�2rrc�``�\sQsQsnQsQU1QkksQsQsQsQs	Qs
QsQ	sQ
s
QsQs\O"1Q
ksQQksQsQsQsUsU9s!)rj��c�d:�[RU_U2V OQ$VmV mUO2UmV0mP
UmP
Um	[OUO2Oo[OU2%fY[OU2%f=[O U2%f!PUmPUmPUm[#Q2g[O$UOP
2UOO'UOO(U2UOO'UO*UOUO,2Ud.UOO'[.O0UP2P!P!)rlz)Pipe transport is for pipes/sockets only.)rr�_extra�_loop�_piperH�_fileno�	_protocol�_closing�_pausedrr�r�r��S_ISFIFOr��S_ISCHRr�set_blocking�	call_soon�connection_made�_add_reader�_read_readyr�_set_result_unless_cancelled)r%�looprlrmrnro�moder's&&&&&& �rr�_UnixReadPipeTransport.__init__�s/���
�����"���F���
��
��{�{�}���!����
�����x�x����%�-�-���
�
�d�#�#��
�
�d�#�#����T�"�"��D�J��D�L�!�D�N��H�I�I�
������e�,��
�
���T�^�^�;�;�T�B��
�
���T�-�-�!�\�\�4�+;�+;�	=����J�J� � ��!E�!E�!'��
/�rc�n�UO2%fP!UOOV2P!r)�
is_readingrr)r%r�rQs&&&rr�"_UnixReadPipeTransport._add_readers$����� � ���
�
���r�,rc�X�UO%(9%cUO%(!r)rr
�r%s&rr�!_UnixReadPipeTransport.is_readings���<�<��5�5��
�
�$5�5rc��UOO,oUOeUOQ2L#UO%cUOQ2UOQUO
02[
UOQP2oUOd`Ud\[OV O
[O2oU%cUOQ2LCUOQ2L1UOdUOQ2LUOQ2QOQ	OU22!)
N�closed�closing�fd=�	_selector�polling�idle�open�<{}>� )r'r�r�appendr
r�getattrrr�_test_selector_event�	selectors�
EVENT_READ�format�join)r%rNr&r"s&   r�__repr__�_UnixReadPipeTransport.__repr__s������'�'�(���:�:���K�K��!�
�]�]�]��K�K�	�"����c�$�,�,��(�)��4�:�:�{�D�9���:�:�!�h�&:�%�:�:��,�,�	�(<�(<�>�G�����I�&����F�#�
�Z�Z�
#��K�K����K�K��!��}�}�S�X�X�d�^�,�,rc��[OUOUO2oU%cUOOU2P!UOO2%c[OQU2P	Um
UOOUO2UOOUOO2UOOUOP2P![[ 1cP!["coSO%SQ2Po=P!Po=hh9h)�%r was closed by peerz"Fatal read error on pipe transport)r�readr�max_sizer	�
data_receivedr�	get_debugrrNr
�_remove_readerr�eof_received�_call_connection_lostr�r�rI�_fatal_error)r%r9rSs&  rr�"_UnixReadPipeTransport._read_ready$s���	G��7�7�4�<�<����7�D�����,�,�T�2��:�:�'�'�)�)��K�K� 7��>� $��
��
�
�)�)�$�,�,�7��
�
�$�$�T�^�^�%@�%@�A��
�
�$�$�T�%?�%?��F�� �!1�2�	���	I����c�#G�H�H��	I�s)�+D
�
E�E�!E�*E�+E�Ec��UO2%fP!P	UmUOOUO2UOO2%c[OQU2P!P!)Nz%r pauses reading)rrrr6rr5r�debugrs&r�
pause_reading�$_UnixReadPipeTransport.pause_reading6sV����� � ������
�
�!�!�$�,�,�/��:�:���!�!��L�L�,�d�3�"rc�4�UO%fUO%fP!P
UmUOOUOUO
2UOO
2%c[OQU2P!P!)Nz%r resumes reading)	r
rrrrrr5rr<rs&r�resume_reading�%_UnixReadPipeTransport.resume_reading>sb���=�=�=����������
�
���t�|�|�T�-=�-=�>��:�:���!�!��L�L�-�t�4�"rc��VmP!r�r	�r%rms&&r�set_protocol�#_UnixReadPipeTransport.set_protocolF���!�rc��UO!rrCrs&r�get_protocol�#_UnixReadPipeTransport.get_protocolI����~�~�rc��UO!r�r
rs&r�
is_closing�!_UnixReadPipeTransport.is_closingL����}�}�rc�R�UO%fUOP2P!P!r)r
�_closers&rr,�_UnixReadPipeTransport.closeOs���}�}�}��K�K���rc��UOd0UQU80[UQ5UOO2P!P!�Nzunclosed transport r*�rr3r,�r%�_warns&&r�__del__�_UnixReadPipeTransport.__del__S�5���:�:�!��'��x�0�/�$�O��J�J����"rc
�b�[U[2%cZUO[O6Xc;UOO2%c[OQVP	Q5L-UOOQUQUQUQUO-2UOU2P!�z%r: %s)�exc_info�message�	exceptionr�rm)rerIrO�EIOrr5rr<�call_exception_handlerr	rR�r%rSr_s&&&rr9�#_UnixReadPipeTransport._fatal_errorXs���s�G�$�$����e�i�i�)?��z�z�#�#�%�%����X�t�t�D���J�J�-�-��7��S��T��D�N�N�	/�
�	
���C�rc��P	UmUOOUO2UOO	UO
U2P!�T)r
rr6rrr8�r%rSs&&rrR�_UnixReadPipeTransport._closefs9����
��
�
�!�!�$�,�,�/��
�
���T�7�7��=rc��UOOU2UOO2PUmPUmPUmP!SOO2PSmPSmPSmh9hr�r	�connection_lostrr,rrgs&&rr8�,_UnixReadPipeTransport._call_connection_lostk�g��	��N�N�*�*�3�/��J�J�����D�J�!�D�N��D�J��
�J�J�����D�J�!�D�N��D�J���A�1B)r
rrrrr	ir��zFatal error on pipe transport)r�r�r�r�r3rrrr.rr=r@rErIrNr,r1r2rYr9rRr8r�r�r�rs@@rrjrj�sd�����H�/�<-�
6�-�*G�$4�5�"����%�M�M��
�>�
�rrjc�``�\sQsQsnQU1QkksQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
s\O"1QksQsQQksQQksQsQsUsU9s!)rs�uc�|:�[RU_VQ2V OQ$V mUO	2UmV0m[2Um]Um	P
Um
[OUO
2oUOo[OU2o[O U2o	[O"U2o
U%f1U	%f)U
%f!PUmPUmPUm[%Q2g[O&UO
P
2UO(O+UOO,U2[.O0Q79%cS	9%cUO2]6�oU
%f6U	%cs[.O0O5Q2%fNU%fFUO(O+UO(O6UO
UO82Ud.UO(O+[:O<UP2P!P!)rlz?Pipe transport is only for pipes, sockets and character devices�aix>�ios�tvos�darwin�sunos5�watchos)rrrrrHrr	�	bytearray�_buffer�
_conn_lostr
rr�r�r�r
rr�rrrrrr-�platform�st_nlink�
startswithrrrr)
r%rrlrmrnro�	pipe_statr�is_char�is_fifo�	is_socket�!is_named_fifo_without_close_eventr's
&&&&&&      �rr� _UnixWritePipeTransport.__init__xs����
����%�"���F���
��{�{�}���!�� �{��������
��H�H�T�\�\�*�	�� � ���,�,�t�$���-�-��%���M�M�$�'�	��7�i��D�J��D�L�!�D�N��D�E�
E�	������e�,��
�
���T�^�^�;�;�T�B�
�L�L�J�J�
3�
3��
3�
3�%�.�.��2�	*���!$���!8�!8��!?�!?�!B��J�J� � ����!7�!7�!%���t�/?�/?�
A����J�J� � ��!E�!E�!'��
/�rc���UOO,oUOeUOQ2L#UO%cUOQ2UOQUO
02[
UOQP2oUOd�Ud�[OV O
[O2oU%cUOQ2LUOQ2UO2oUOQU02L1UOdUOQ2LUOQ2Q	OQ
OU22!)Nrrr r!r"r#zbufsize=r$r%r&)r'r�rr'r
rr(rrr)r*�EVENT_WRITE�get_write_buffer_sizer,r-)r%rNr&r"r�s&    rr.� _UnixWritePipeTransport.__repr__�s�����'�'�(���:�:���K�K��!�
�]�]�]��K�K�	�"����c�$�,�,��(�)��4�:�:�{�D�9���:�:�!�h�&:�%�:�:��,�,�	�(=�(=�?�G�����I�&����F�#��0�0�2�G��K�K�(�7�)�,�-�
�Z�Z�
#��K�K����K�K��!��}�}�S�X�X�d�^�,�,rc�.�[UO2!r)�lenrzrs&rr��-_UnixWritePipeTransport.get_write_buffer_size�s���4�<�<� � rc���UOO2%c[OQU2UO%cUO[
22P!UO2P!)r1)rr5rrNrzrR�BrokenPipeErrorrs&rr�#_UnixWritePipeTransport._read_ready�sE���:�:���!�!��K�K�/��6��<�<�<��K�K��)�*��K�K�Mrc��[U[2%c[U2oU%fP!UO%fUO%cQUO[
O6�c[OQ2U9O]*
tmP!UO%fz[OUOU2oU['U26XcP!U]6�c[U2UPoUO(O+UOUO,2U9OU*
tm	UO/2P![[1c]oK�[[ 1cg["c7oS9O]*
tmSO%SQ2Po=P!Po=hh9h)Nz=pipe closed by peer or os.write(pipe, data) raised exception.�#Fatal write error on pipe transport)rery�
memoryviewr{r
r�!LOG_THRESHOLD_FOR_CONNLOST_WRITESr�warningrzr�writerr�r�r|r}r~r9r�r�_add_writer�_write_ready�_maybe_pause_protocol)r%r9�nrSs&&  rr��_UnixWritePipeTransport.write�s@���d�I�&�&��d�#�D����?�?�?�d�m�m�m����)�"M�"M�M���� H�I��O�O�q� �O���|�|�|�	
��H�H�T�\�\�4�0���C��I�~���Q��!�$�'���+���J�J�"�"�4�<�<��1B�1B�C��������"�"�$��$�%5�6�
���� 1�2�
�� �
����1�$���!�!�#�'L�M���
�s0�4!E�F=�'F=�,F=�;
F=�F=�+F8�8F=c�D�[OUOUO2oU[	UO26Xc�UOO2UOOUO2UO2UO%c7UOOUO2UOP2P!U]6�cUOPU/P!P![[1cP![[1cg[ cvoSOO2S9O"]*
tmSOOSO2SO%SQ2Po=P!Po=hh9h)Nr�)rr�rrzr�r4r�_remove_writer�_maybe_resume_protocolr
r6r8r�r�r|r}r~r{r9)r%r�rSs&  rr��$_UnixWritePipeTransport._write_ready�s0��	%�������t�|�|�4�A��C����%�%����"�"�$��
�
�)�)�$�,�,�7��+�+�-��=�=�=��J�J�-�-�d�l�l�;��.�.�t�4���Q���L�L��!��$���) �!1�2�	���-�.�	���	J��L�L��� ��O�O�q� �O�
�J�J�%�%�d�l�l�3����c�#H�I�I��
	J�s0�+C;�;F�F�F�
F�)F�*A*F�Fc��P	!rfrrs&r�
can_write_eof�%_UnixWritePipeTransport.can_write_eof
s��rc��UO%cP!P	UmUO%fNUOOUO2UOOUOP2P!P!r)r
rzrr6rrr8rs&r�	write_eof�!_UnixWritePipeTransport.write_eofsS���=�=�=����
��|�|�|��J�J�%�%�d�l�l�3��J�J� � ��!;�!;�T�B�rc��VmP!rrCrDs&&rrE�$_UnixWritePipeTransport.set_protocolrGrc��UO!rrCrs&rrI�$_UnixWritePipeTransport.get_protocolrKrc��UO!rrMrs&rrN�"_UnixWritePipeTransport.is_closingrPrc�p�UOd'UO%fUO2P!P!P!r)rr
r�rs&rr,�_UnixWritePipeTransport.close"s&���:�:�!�$�-�-�-��N�N��+8�!rc��UOd0UQU80[UQ5UOO2P!P!rUrVrWs&&rrY�_UnixWritePipeTransport.__del__'r[rc�*�UOP2P!r)rRrs&r�abort�_UnixWritePipeTransport.abort,s�����D�rc
�$�[U[2%c;UOO2%c[O
QVP	Q5L-UOO
QUQUQUQUO-2UOU2P!r])	rerIrr5rr<rbr	rRrcs&&&rr9�$_UnixWritePipeTransport._fatal_error/sp���c�7�#�#��z�z�#�#�%�%����X�t�t�D���J�J�-�-��7��S��T��D�N�N�	/�
�	
���C�rc�N�P	UmUO%c&UOOUO2UOO2UOO
UO2UOOUOU2P!rf)	r
rzrr�rr4r6rr8rgs&&rrR�_UnixWritePipeTransport._close=sh����
��<�<�<��J�J�%�%�d�l�l�3��������
�
�!�!�$�,�,�/��
�
���T�7�7��=rc��UOOU2UOO2PUmPUmPUmP!SOO2PSmPSmPSmh9hrrjrgs&&rr8�-_UnixWritePipeTransport._call_connection_lostErmrn)rzr
r{rrrr	r�ror)r�r�r�r�rr.r�rr�r�r�r�rErIrNr,r1r2rYr�r9rRr8r�r�r�rs@@rrsrsusk����0/�d-�0!��!%�F%�8�C�"����
%�M�M��
��>��rrsc�(`�\sQsQsnQsQsUsP!)rx�Oc�$�PoU[O6Xc=[OO	Q2%c[
O2vq8[OU1QUQUQUQUQP
QU-U@UmUd>UO2[UO2QUQ	5UOmPoUd#UO2UO2P!P!Sd"SO2SO2hh9h)
Nrsr�r�r�r��universal_newlinesr��wb)�	buffering)
�
subprocess�PIPEr-r|r~r��
socketpair�Popen�_procr,r$�detachr�)	r%rRr�r�r�r�r�r��stdin_ws	&&&&&&&, r�_start�_UnixSubprocessTransport._startQs�����J�O�O�#����(?�(?��(F�(F�
$�.�.�0�N�E�	 �#�)�)��E�!�E�).�E�7=�E�FL�E�#(�E�29�E�=C�E�D�J��"����
�#'����(8�$�'�#R��
�
� ����"����
��
�
��#��w�"����
��
�
��#�s�,C(�=C(�(D�-"D)r�)r�r�r�r�r�r�r��rs@rrxrxOs���� � rrxc�2`�\sQsQsnQsQsQsQsUsP!)r"�gaChild watcher implementation using Linux's pid file descriptors.

This child watcher polls process file descriptors (pidfds) to await child
process termination. In some respects, PidfdChildWatcher is a "Goldilocks"
child watcher implementation. It doesn't require signals or threads, doesn't
interfere with any processes launched outside the event loop, and scales
linearly with the number of subprocesses launched by the event loop. The
main disadvantage is that pidfds are specific to Linux, and only work on
recent (5.3+) kernels.
c��[O2o[OU2oUO	VPO
VV#2P!r)r�get_running_loopr�
pidfd_openr�_do_wait)r%r�rQrRr�pidfds&&&*  rry�$_PidfdChildWatcher.add_child_handlerss4���&�&�(���
�
�c�"������
�
�s�8�Jrc�4�[O2oUOU2[OU]2vqg[U2o[OU2UV,UN3P![c]�o[OQS2KIh9h)r�zJchild process pid %d exit status already read:  will report returncode 255)
rr�r6r�waitpidr�ChildProcessErrorrr�r,)	r%r�r�rQrRr�_rr�s	&&&&&    rr��_PidfdChildWatcher._do_waitxs����&�&�(�����E�"�	8��
�
�3��*�I�A�0��7�J�
�������(�4�(��!�	��J��N�N�.��
�		�s�A0�0	B�:B�Br)	r�r�r�r�r�ryr�r�r�r�s@rr"r"gs����	�K�
)�)rr"c�d`�\sQsQsnQsQs\O1QksQs	Qs
QsQsQ	s
UsP!)
r$�a%Threaded child watcher implementation.

The watcher uses a thread per process
for waiting for the process finish.

It doesn't require subscription on POSIX signal
but a thread creation is not free.

The watcher has O(1) complexity, its performance doesn't depend
on amount of spawn processes.
c�L�[O]2Um-UmP!)r�)�	itertoolsr��_pid_counter�_threadsrs&rr�_ThreadedChildWatcher.__init__�s��%�O�O�A�.�����
rc���[UOO22Tt,tFDoUO2%fJUMJ	ooU%cUUOQ0[
UQ5P!P!ttoh)z0 has registered but not finished child processesr*)r/r��values�is_aliver'r3)r%rX�thread�threadss&&  rrY�_ThreadedChildWatcher.__del__�sg��(,�T�]�]�-A�-A�-C�(D�)�(D�f��o�o�'��6�(D��)���T�^�^�$�$T�U�!��
���)s�A5�A5c���[O2o[OUOQ[UO20VAV#1P	Q5oVPOU$UO2P!)zasyncio-waitpid-)�target�namerR�daemon)	rr��	threading�Thread�_do_waitpid�nextr�r��start)r%r�rQrRrr�s&&&*  rry�'_ThreadedChildWatcher.add_child_handler�s`���&�&�(���!�!��)9�)9�)9�$�t�?P�?P�:Q�9R�'S�(,�8�'B�)-�/��$�
�
�c�����rc��[[Q2%c�[O[OU[O[O
*2UO2%c,UOV2vqV[OQV2LvUOUOVV42LWUOV2vqWUO2%c[OQV2LUOV5U,UN3UOOU2P![cK�h9h[c.SOX2vqV[OQX2Keh9h)�waitidz%Loop %r that handles pid %r is closed)�hasattrrr��P_PID�WEXITED�WNOWAITr��	is_closed�_reaprr��call_soon_threadsafe�_reap_and_notifyrJr��pop)r%r�expected_pidrQrRr�r�r�s&&&&&   rr��!_ThreadedChildWatcher._do_waitpid�s)���2�x� � �
��	�	�"�(�(�L�"�*�*�r�z�z�2I�J��~�~������D�7������F�#�*�.��-�-��-�-�t� �(�#�j�j��<�O�C��~�~������F�#�*��)�)�(��K�d�K��
�
���,�'��9%�
��
��$�.�!�Z�Z��;�F�C��N�N�#J�#'�.�.�s0�A	D6�$E�6	E�E�E�	E?�+E?�>E?c�D�UOV2vqVUVV,UN3P!r)r�)r%rr�rQrRr�r�s&&&&&  rr��&_ThreadedChildWatcher._reap_and_notify�s���*�*�T�8�����(�4�(rc�
�[OU]2vq4[U2oUO2%c[O
QV%2V51![c!So]�o[OQS2X51!h9h)r�z$process %s exited with returncode %sz8Unknown child process pid %d, will report returncode 255)rr�rr5rr<r�r�)r%rr�r�rr�s&&&   rr��_ThreadedChildWatcher._reap�s���	7��*�*�\�1�5�K�C�0��7�J��~�~������C�)�7�����!�	��C��J��N�N�J��
����	�s�A�	B�!B�B)r�r�)r�r�r�r�r�rr1r2rYryr�r�r�r�r�r�s@rr$r$�s7����
��%�M�M���'(�R)��rr$c���[[Q2%fP
![O2o[O[OU]22P	![
cP
!h9h)r�)r�r�getpidr,r�rI)r�s rr!r!�sR���2�|�$�$����i�i�k��
������s�A�&�'�������s�AA�	A,�'A,�+A,c� �\sQsQsQs\sQsP!)�_UnixDefaultEventLoopPolicy�zUNIX event loop policyr)r�r�r�r�r�r�
_loop_factoryr�rrrr�r��s
�� �*�Mrr�)�SelectorEventLoop�	EventLoop)0r�rOr�r�rr*rEr�r�r�r-r�r1�rrrrrrrrr	r
�logr�__all__r|�ImportErrorrr�BaseSelectorEventLoopr�
ReadTransportrj�_FlowControlMixin�WriteTransportrs�BaseSubprocessTransportrxr"r$r!�_BaseDefaultEventLoopPolicyr�r�_DefaultEventLoopPolicyrrrr�<module>rs��8��	��	��
�
���
�����������������<�<�7��
�C�
D�D�	�
�l2�_�B�B�l2�^
M�Z�5�5�M�`W�j�:�:�(�7�7�W�t ��F�F� �0")�")�H_�_�B	�+�&�"D�"D�+�
+��5���	r

Youez - 2016 - github.com/yon3zu
LinuXploit