ACC SHELL

Path : /usr/lib/python/multiprocessing/
File Upload :
Current File : //usr/lib/python/multiprocessing/forking.pyc

tMc@sddkZddkZddkZddklZlZddddddgZd	Zdd
kl	Z	de	fdYZ
dZe
ie
e
ied
Ze
ie
eiee
ie
eieyddklZWnej
on$XdZdZe
ieeeidjoAddkZeiZeiZeiZde fdYZ!n{ddk"Z"ddk#Z#ddk$Z$ddkZddk%l&Z&l'Z'l(Z(ddkl)Z)ddkl*Z*l+Z+ddZ-dZ.eidjoe/ede0Z1e&i2Ze&i3Zei4i5i6doei7i8ei9da:n
ei4a:dZ;de0dZde fdYZ!dZ<d Z=d!Z>d"Z?d#Z@d$ZAe
ie'eAe
ie(eAgZBd%ZCdS(&iN(tutiltprocesstPopentassert_spawningtexitt	duplicatetclosetForkingPicklercCs.tiptdt|indS(NsF%s objects should only be shared between processes through inheritance(Rtthread_is_spawningtRuntimeErrorttypet__name__(tself((s-/usr/lib/python2.6/multiprocessing/forking.pyRs
(tPicklercBs&eZeiiZedZRS(cs fd}||i|<dS(Ncs#|}|id||dS(Ntobj(tsave_reduce(RRtrv(treduce(s-/usr/lib/python2.6/multiprocessing/forking.pyt
dispatcher&s(tdispatch(tclsR
RR((Rs-/usr/lib/python2.6/multiprocessing/forking.pytregister$s(Rt
__module__R
RtcopytclassmethodR(((s-/usr/lib/python2.6/multiprocessing/forking.pyR!scCsG|idjot|i|iiffSt|i|iiffSdS(N(tim_selftNonetgetattrtim_classtim_funct	func_name(tm((s-/usr/lib/python2.6/multiprocessing/forking.pyt_reduce_method+scCst|i|iffS(N(Rt__objclass__R(R((s-/usr/lib/python2.6/multiprocessing/forking.pyt_reduce_method_descriptor2s(tpartialcCs#t|i|i|iphffS(N(t_rebuild_partialtfunctargstkeywords(tp((s-/usr/lib/python2.6/multiprocessing/forking.pyt_reduce_partialAscCst|||S(N(R#(R%R&R'((s-/usr/lib/python2.6/multiprocessing/forking.pyR$Cstwin32cBsDeZdZeidZddZdZe	dZ
RS(cCstiitiid|_ti|_|idjoadti	joddk
}|in|i}tiitiiti
|ndS(Nitrandomi(tsyststdouttflushtstderrRt
returncodetostforktpidtmodulesR+tseedt
_bootstrapt_exit(Rtprocess_objR+tcode((s-/usr/lib/python2.6/multiprocessing/forking.pyt__init__Ys

	

cCs|idjoti|i|\}}||ijoTti|oti||_qti|ptti	||_qn|iS(N(
R0RR1twaitpidR3tWIFSIGNALEDtWTERMSIGt	WIFEXITEDtAssertionErrortWEXITSTATUS(RtflagR3tsts((s-/usr/lib/python2.6/multiprocessing/forking.pytpollhscCs|djo|idSti|}d}xf|i}|dj	oPn|ti}|djoPnt|d|d}ti|q4|S(NigMb@?ig?(RRCttimetmintsleep(Rttimeouttdeadlinetdelaytrest	remaining((s-/usr/lib/python2.6/multiprocessing/forking.pytwaitss


cCsj|idjoVyti|itiWqftj
o)}|idddjoqbqfXndS(NRGg?(	R0RR1tkillR3tsignaltSIGTERMtOSErrorRL(Rte((s-/usr/lib/python2.6/multiprocessing/forking.pyt	terminatescCstS(N(tFalse(((s-/usr/lib/python2.6/multiprocessing/forking.pyRsN(RRR:R1tWNOHANGRCRRLRRtstaticmethodR(((s-/usr/lib/python2.6/multiprocessing/forking.pyRWs
		i(R*t
ConnectiontPipeConnection(tFinalize(tloadtHIGHEST_PROTOCOLcCst||i|dS(N(Rtdump(Rtfiletprotocol((s-/usr/lib/python2.6/multiprocessing/forking.pyR[sitfrozenspythonservice.exes
python.execCs
|adS(N(t_python_exe(texe((s-/usr/lib/python2.6/multiprocessing/forking.pytset_executablescCsH|djoti}ntiti||d|tiiS(Ni(Rt_subprocesstGetCurrentProcesstDuplicateHandletDUPLICATE_SAME_ACCESStDetach(thandlettarget_processtinheritable((s-/usr/lib/python2.6/multiprocessing/forking.pyRs

cBs_eZdZeiZdZedZedZ	ddZdZdZ
RS(sH
        Start a subprocess to run the code of a process object
        c
Cs7ti\}}tti|dt}ti|t|g}did|D}t	i
t|ddddddd	\}}}}	|i
t|||_d|_||_t|i}
ti|d}t|ti_z$t|
|tt||tWdti`|iXdS(NRit cssx|]}d|VqWdS(s"%s"N((t.0tx((s-/usr/lib/python2.6/multiprocessing/forking.pys	<genexpr>s	iitwb(R1tpipeRtmsvcrtt
get_osfhandletTrueRtget_command_linetjoinRbt
CreateProcessR_RtCloseR3R0t_handletget_preparation_datat_nametfdopentintRt_tlstprocess_handleR[RZ(RR8trfdtwfdtrhandletcmdthpthtR3ttidt	prep_datatto_child((s-/usr/lib/python2.6/multiprocessing/forking.pyR:s(
-

				cCsttidddj	S(NR|(RRR{R(((s-/usr/lib/python2.6/multiprocessing/forking.pyRscCst|tiiS(N(RRR{R|(Rg((s-/usr/lib/python2.6/multiprocessing/forking.pytduplicate_for_childscCs|idjo|djo
ti}ntdt|dd}tit|i|}|tijo:ti	|i}|t
joti}n||_qn|iS(Niig?(
R0RRbtINFINITEtmaxRztWaitForSingleObjectRvt
WAIT_OBJECT_0tGetExitCodeProcesst	TERMINATERNRO(RRGtmsecsRJR9((s-/usr/lib/python2.6/multiprocessing/forking.pyRLs


cCs|iddS(NRGi(RL(R((s-/usr/lib/python2.6/multiprocessing/forking.pyRCscCsk|idjoWytit|itWqgtj
o'|idddjoqcqgXndS(NRGg?(	R0RRbtTerminateProcessRzRvRtWindowsErrorRL(R((s-/usr/lib/python2.6/multiprocessing/forking.pyRRsN(RRt__doc__tthreadt_localR{R:RURRRRLRCRR(((s-/usr/lib/python2.6/multiprocessing/forking.pyRs	!	cCsKt|djo0|ddjot|djpttStSdS(sE
        Return whether commandline indicates we are forking
        iis--multiprocessing-forkiN(tlenR?RqRS(targv((s-/usr/lib/python2.6/multiprocessing/forking.pyt
is_forkings$cCs)ttiottindS(sM
        Run code for process object if this in not the main process
        N(RR,RtmainR(((s-/usr/lib/python2.6/multiprocessing/forking.pytfreeze_support&scCsqtiidjo ttiotdnttdtoti	dgSd}t
d|dgSdS(sR
        Returns prefix of command line used for spawning a child process
        s
            Attempt to start a new process before the current process
            has finished its bootstrapping phase.

            This probably means that you are on Windows and you have
            forgotten to use the proper idiom in the main module:

                if __name__ == '__main__':
                    freeze_support()
                    ...

            The "freeze_support()" line can be omitted if the program
            is not going to be frozen to produce a Windows executable.R^s--multiprocessing-forks0from multiprocessing.forking import main; main()s-cN((Rtcurrent_processt	_identityRR,RR	RRSt
executableR_(tprog((s-/usr/lib/python2.6/multiprocessing/forking.pyRr/s&
cCsttiptttid}ti|ti}ti	|d}t
ti_
t|}t|t|}tti_
|i|i}t|dS(s>
        Run code specifed by data received over pipe
        itrbN(RR,RR?RzRotopen_osfhandleR1tO_RDONLYRyRqRRt_inheritingRYtprepareRSRR6R(Rgtfdtfrom_parenttpreparation_dataRtexitcode((s-/usr/lib/python2.6/multiprocessing/forking.pyRIs

cCs2ddkl}l}td|dtidtid|dtidti	i
}|dj	o|i|d	<nt
pttid
dd}|o%tiddjotid}n|dj	oZtii|o,tidj	otiiti|}ntii||d<q.n|S(sU
        Return info about parent needed by child to unpickle process object
        i(t_loggert_log_to_stderrtnametsys_pathtsys_argvt
log_to_stderrtorig_dirtauthkeyt	log_levelt__main__t__file__its-ct	main_pathN(Rs-c(RRRtdictR,tpathRRtORIGINAL_DIRRRRtgetEffectiveLeveltWINEXERR4R1tisabsRstnormpath(RRRtdR((s-/usr/lib/python2.6/multiprocessing/forking.pyRw_s(			

cCsXtiptdt|int|ti|i|i|iffS(NsLBy default %s objects can only be shared between processes
using inheritance(	RRR	R
RRtfilenotreadabletwritable(tconn((s-/usr/lib/python2.6/multiprocessing/forking.pytreduce_connections
c

Cstitidd|jo|dti_nd|jo|dti_nd|jo|doti	nd|joti
i|dnd|jo|dt_nd|jo|dt_
nd|joti|dnd	|jo|d	t_nd
|jo|d
}tiitii|d}|djo"tiitii|}n|d
joNddk}|djo
d}nWtii|ido%tiitii|g}ntii|g}|tijp
t||i||\}}}z|id|||}Wd|o|inX|tid<d|_xR|iiD]=}	y!|	idjo
d|	_nWqtj
oqXqWqndS(sE
    Try to get current process ready to unpickle process object
    RRRRRRRtdirRRiR:tipythoniNs__init__.pyt__parents_main__( told_main_modulestappendR,R4RRRt_authkeyRRt
get_loggertsetLevelRRR1tchdirRtsplitexttbasenametdirnametimpRt
startswithR?tfind_moduletload_moduleRRt__dict__tvaluesRt	Exception(
tdataRt	main_nameRtdirsR\t	path_nametetctmain_moduleR((s-/usr/lib/python2.6/multiprocessing/forking.pyRsZ








"
"


%
	(DR1R,RNtmultiprocessingRRt__all__RtpickleR
RR RR
tsaveR"tlistRRzt__add__t	functoolsR#tImportErrorR)R$tplatformRDR7RtdupRRtobjectRRRoRbt_multiprocessingR*RVRWRXRYRZRR[RRRSRtExitProcesstCloseHandleRtlowertendswithRRstexec_prefixR_RaRRRrRRwRRR(((s-/usr/lib/python2.6/multiprocessing/forking.pyt<module>	sj	
							="				
N						"		

ACC SHELL 2018