403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
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__/fork_wait.cpython-313.opt-1.pyc
�

��i}	��~�SrSSKrSSKrSSKrSSKrSSKJr SSKJr SSK	r	Sr
SrSr"SS	\R5rg)
arThis test case provides support for checking forking and wait behavior.

To test different wait behavior, override the wait_impl method.

We want fork1() semantics -- only the forking thread survives in the
child after a fork().

On some systems (e.g. Solaris without posix threads) we find that all
active threads survive in the child after a fork(); this is an error.
�N)�support)�threading_helper�g�?�c�2�\rSrSrSrSrSrSrSrSr	g)	�ForkWait�c�b�[R"5Ul0UlSUl/Ulg)Nr)r�threading_setup�_threading_key�alive�stop�threads)�selfs �#C:\Python313\\Lib\test\fork_wait.py�setUp�ForkWait.setUps(��.�>�>�@�����
���	����c���SUlURHnUR5 M SnURR5 [R
"UR6 g)N�)rr�join�clearr�threading_cleanupr)r�threads  r�tearDown�ForkWait.tearDownsI����	��l�l�F��K�K�M�#����������*�*�D�,?�,?�@rc���UR(dQ[R"5URU'[R
"[5 UR(dMPgg![a N!f=f)N)r�os�getpidr
�time�sleep�
SHORTSLEEP�OSError)r�ids  r�f�
ForkWait.f(sL���)�)��Y�Y�[�D�J�J�r�N�
��
�
�:�&��)�)�)���
��
�s�A$�$
A1�0A1c�,�[R"XS9 g)N��exitcode)r�wait_process)r�cpidr)s   r�	wait_impl�ForkWait.wait_impl0s�����T�5rc��[[5HNn[R"URU4S9nUR5 URRU5 MP [R"[R5H"n[UR5[:�dM" O [URR55nURU[![[555 URR#5n[$R&"[(SS9 [*R,"5=nS:Xab[.R0"[25 SnURHnURUXX:wdMUS-
nM! [*R4"U5 OUR7USS9 SSS5 g!,(df   g=f)N)�target�args�ignore)�category�actionrrr()�range�NUM_THREADS�	threading�Threadr%�startr�appendr�sleeping_retry�
SHORT_TIMEOUT�lenr
�sorted�keys�assertEqual�list�copy�warnings�catch_warnings�DeprecationWarningr�forkr r!�	LONGSLEEP�_exitr,)	r�ir�_�a�
prefork_livesr+�n�keys	         r�	test_wait�ForkWait.test_wait3sH���{�#�A��%�%�T�V�V�1�$�?�F��L�L�N��L�L����'�$��'�'��(=�(=�>�A��4�:�:��+�-��?�
�4�:�:�?�?�$�%������D��{�!3�4�5��
�
���)�
��
$�
$�.@�,4�6����	�!��a�'��
�
�9�%����:�:�C��z�z�#��-�*<�<��Q���&���������t�a��0�6�6�6�s�*AG�0G�
G)rr
rrN)
�__name__�
__module__�__qualname__�__firstlineno__rrr%r,rN�__static_attributes__�rrrrs���A��6�1rr)�__doc__rr �unittestr6�testr�test.supportrrBrFr"r5�TestCaserrUrr�<module>r[sA��	�����)��
�	�
�
���91�x� � �91r

Youez - 2016 - github.com/yon3zu
LinuXploit