403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.124
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python27/lib64/python2.7/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python27/lib64/python2.7/test/fork_wait.pyo
�
�q2_c@s�dZddlZddlZddlZddlZddljZejd�ZdZ	dZ
dZdejfd��YZ
dS(	s�This 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.

While BeOS doesn't officially support fork and native threading in
the same application, the present example should work just fine.  DC
i����Nt	threadingig�?itForkWaitcBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCs.tj�|_i|_d|_g|_dS(Ni(tsupporttthreading_setupt_threading_keytalivetstoptthreads(tself((s3/opt/alt/python27/lib64/python2.7/test/fork_wait.pytsetUps		cCsHd|_x|jD]}|j�qWd}|j2tj|j�dS(Ni(RRtjointNoneRtthreading_cleanupR(Rtthread((s3/opt/alt/python27/lib64/python2.7/test/fork_wait.pyttearDown s	cCsLxE|jsGtj�|j|<ytjt�Wqtk
rCqXqWdS(N(RtostgetpidRttimetsleept
SHORTSLEEPtIOError(Rtid((s3/opt/alt/python27/lib64/python2.7/test/fork_wait.pytf)s
cCs�xPtd�D]B}tj|tj�\}}||kr>Pntjdt�q
W|j||�|j|dd|d@|d?f�dS(Ni
iiscause = %d, exit = %di�i(trangeRtwaitpidtWNOHANGRRRtassertEqual(Rtcpidtitspidtstatus((s3/opt/alt/python27/lib64/python2.7/test/fork_wait.pyt	wait_impl1scCs<xLtt�D]>}tjd|jd|f�}|j�|jj|�q
Wtj	t
�|jj�}|j
�|j|tt��|jj�}tjdkr�tj�}ntj�}|dkr+tj	t
�d}x5|jD]*}|j|||kr�|d7}q�q�Wtj|�n
|j|�dS(Nttargettargst	unixware7ii(R"(RtNUM_THREADSRtThreadRtstartRtappendRRt	LONGSLEEPRtkeystsortRtcopytsystplatformRtfork1tforkt_exitR(RRR
tat
prefork_livesRtntkey((s3/opt/alt/python27/lib64/python2.7/test/fork_wait.pyt	test_wait=s(



(t__name__t
__module__R	RRRR4(((s3/opt/alt/python27/lib64/python2.7/test/fork_wait.pyRs
					(t__doc__RR+Rtunittestttest.supportRt
import_moduleRR'RR#tTestCaseR(((s3/opt/alt/python27/lib64/python2.7/test/fork_wait.pyt<module>
s0

Youez - 2016 - github.com/yon3zu
LinuXploit