HEX
Server: Apache
System: Linux sys.digiflyeg.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User: opal (1023)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib64/python2.7/test/test_fork1.pyc
�
zfc@s�dZddlZddlZddlZddlZddlZddlmZddlm	Z	m
Z
mZmZed�Z
eed�defd��YZd	�Zed
kr�e�ndS(s.This test checks for correct fork() behavior.
i����N(tForkWait(trun_unittestt
reap_childrent
get_attributet
import_modulet	threadingtforktForkTestcBseZd�Zd�ZRS(cCs�xLtd�D]>}tj|tj�\}}||kr>Pntjd�q
W|j||�|j|dd|d@|d?f�dS(Ni
g�?iscause = %d, exit = %di�i(trangetostwaitpidtWNOHANGttimetsleeptassertEqual(tselftcpidtitspidtstatus((s'/usr/lib64/python2.7/test/test_fork1.pyt	wait_implscs�tj��d�d�d�����fd�}tjd|�}|j��j�tj�}zY|s�t��}|�kr�tjd�q�tjd�n|j	�|j
|�Wdytj|tj
�Wntk
r�nXXdS(Nsfake test moduletpartialtcompletecsItj��tj�<�j�tjd��tj�<tj�dS(Ng{�G�z�?(timptacquire_locktsystmodulestsetRR
trelease_lock((tcomplete_moduletfake_module_nametimport_startedtpartial_module(s'/usr/lib64/python2.7/test/test_fork1.pytimporter$s




ttargetii(RtEventtThreadtstarttwaitR	Rt
__import__t_exittjoinRtkilltsignaltSIGKILLtOSError(RR!tttpidtm((RRRR s'/usr/lib64/python2.7/test/test_fork1.pyttest_import_lock_forks*



(t__name__t
__module__RR1(((s'/usr/lib64/python2.7/test/test_fork1.pyRs	cCstt�t�dS(N(RRR(((s'/usr/lib64/python2.7/test/test_fork1.pyt	test_mainBs
t__main__(t__doc__RR	R+RRttest.fork_waitRttest.test_supportRRRRRRR4R2(((s'/usr/lib64/python2.7/test/test_fork1.pyt<module>s"
0