MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/root/proc/2/cwd/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$		$