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 :  /proc/21572/root/usr/lib/python2.4/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21572/root/usr/lib/python2.4/test/test_threadsignals.pyo
mň
‚=5Dc@sďdZdkZdkZdkZdkZdkZdklZlZei	d djpei	djoedei	‚nei
ƒZeiƒZ
d„Zd	„Zd
„Zdeifd„ƒYZd
„ZedjoeƒndS(s6PyUnit testing that threads honor our signal semanticsN(srun_unittestsTestSkippeditwintos2triscossCan't test signal on %scCs[|\}}}titi|ƒ}titi|ƒ}titi|ƒ}|||fS(N(
tfor_usr1tfor_usr2tfor_alrmtsignaltSIGUSR1tusr1tSIGUSR2tusr2tSIGALRMtalrm(t.0RRRR
RR((t-/usr/lib/python2.4/test/test_threadsignals.pytregisterSignalsscCs,t|dcd7<tiƒt|d<dS(Nttrippedit
tripped_by(tsignal_blackboardtsigtthreadt	get_ident(Rtframe((Rthandle_signalsscCs4tittiƒtittiƒtiƒdS(N(tostkilltprocess_pidRRR	t
signalled_alltrelease(((Rtsend_signalsst
ThreadSignalscBs tZdZd„Zd„ZRS(sŢTest signal handling semantics of threads.
       We spawn a thread, have the thread send two signals, and
       wait for it to finish. Check that we got both signals
       and that they were run by the main thread.
    cCsütiƒ|iƒtiƒttiddjpttiddjo(tidƒtiƒtidƒn|i	tti
ddƒ|i	tti
dtiƒƒ|i	ttiddƒ|i	ttidtiƒƒti
ƒdS(NRiiR(RtacquiretselftspawnSignallingThreadRRR	talarmtpausetassertEqualRRRR(R ((Rttest_signals*s


0



cCstitfƒdS(N(Rtstart_new_threadR(R ((RR!Bs(t__name__t
__module__t__doc__R%R!(((RR$s	cCs•htihdd<dd<<tihdd<dd<<tihdd<dd<<attttfƒ}ztt	ƒWdt|ƒXdS(NRiR(
RRR	RRRRtoldsigstrun_unittestR(R*((Rt	test_mainFs`t__main__(RR(R)tunittestRRRtsysttest.test_supportR+tTestSkippedtplatformtgetpidRt
allocate_lockRRRRtTestCaseRR,R'(R1RR.RR/RRR+RRRRRR,((Rt?s"					$				"	



Anon7 - 2021