MOON
Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4
System: Linux vps.panamaemb.org.sg 3.10.0-1160.80.1.vz7.191.4 #1 SMP Thu Dec 15 20:31:06 MSK 2022 x86_64
User: panama (500)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //usr/lib/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/lib/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$		$