KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/lib64/python2.4/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.4/test/test_fork1.pyo
mò
‚=5Dc@s¨dZdkZdkZdkZdkZdklZlZlZyei	Wne
j
oed‚nXdZdZdZ
hZdad„Zd	„ZeƒdS(
s This test checks for correct fork() behavior.

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
N(sverifysverbosesTestSkippeds*os.fork not defined -- skipping test_fork1if0.5iicCsJxCtp;tiƒt|<ytitƒWqtj
oqXqWdS(N(	tstoptostgetpidtalivetidttimetsleept
SHORTSLEEPtIOError(R((t'/usr/lib64/python2.4/test/test_fork1.pytfscCsqx'ttƒD]}tit|fƒq
Wtitƒt	i
ƒ}|iƒt
|ttƒjƒt	iƒ}tidgjotiƒ}n
tiƒ}|djo^titƒd}x7t	i
ƒD])}t	|||jo|d}qËqËWti|ƒneti|dƒ\}}t
||jƒt
|djd|d@|d?fƒdatidtƒdS(Nt	unixware7iiscause = %d, exit = %diÿii(trangetNUM_THREADStitthreadt	start_newR
RRt	LONGSLEEPRtkeystatsorttverifytcopyt
prefork_livestsystplatformRtfork1tcpidtforktntkeyt_exittwaitpidtspidtstatusRR(RR!RRRRR"R((R	tmain's4





(t__doc__RRRRttest.test_supportRtverbosetTestSkippedRtAttributeErrorRRR
RRR
R#(
R
RR'R&RR
RRRRRR#R((R	t?s$		$

Anon7 - 2021