ACC SHELL

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

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|idjolti|i|\}}||ijo=ti|oti||_qxti||_q|n|iS(N(R0RR1twaitpidR3tWIFSIGNALEDtWTERMSIGtWEXITSTATUS(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?(RRAttimetmintsleep(Rttimeouttdeadlinetdelaytrest	remaining((s-/usr/lib/python2.6/multiprocessing/forking.pytwaitss


cCsj|idjoVyti|itiWqftj
o)}|idddjoqbqfXndS(NREg?(	R0RR1tkillR3tsignaltSIGTERMtOSErrorRJ(Rte((s-/usr/lib/python2.6/multiprocessing/forking.pyt	terminatescCstS(N(tFalse(((s-/usr/lib/python2.6/multiprocessing/forking.pyRsN(RRR:R1tWNOHANGRARRJRPt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.pyRYsitfrozenspythonservice.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(NRgt cssx|]}d|VqWdS(s"%s"N((t.0tx((s-/usr/lib/python2.6/multiprocessing/forking.pys	<genexpr>s	iitwb(R1tpipeRtmsvcrtt
get_osfhandletTrueRtget_command_linetjoinR`t
CreateProcessR]RtCloseR3R0t_handletget_preparation_datat_nametfdopentintRt_tlstprocess_handleRYRX(RR8trfdtwfdtrhandletcmdthpthtR3ttidt	prep_datatto_child((s-/usr/lib/python2.6/multiprocessing/forking.pyR:s(
-

				cCsttidddj	S(NRz(RRRyR(((s-/usr/lib/python2.6/multiprocessing/forking.pyRscCst|tiiS(N(RRRyRz(Re((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?(
R0RR`tINFINITEtmaxRxtWaitForSingleObjectRtt
WAIT_OBJECT_0tGetExitCodeProcesst	TERMINATERLRM(RREtmsecsRHR9((s-/usr/lib/python2.6/multiprocessing/forking.pyRJs


cCs|iddS(NREi(RJ(R((s-/usr/lib/python2.6/multiprocessing/forking.pyRAscCsk|idjoWytit|itWqgtj
o'|idddjoqcqgXndS(NREg?(	R0RR`tTerminateProcessRxRtRtWindowsErrorRJ(R((s-/usr/lib/python2.6/multiprocessing/forking.pyRPsN(RRt__doc__tthreadt_localRyR:RSRRRRJRARP(((s-/usr/lib/python2.6/multiprocessing/forking.pyRs	!	cCs1t|djo|ddjotStSdS(sE
        Return whether commandline indicates we are forking
        iis--multiprocessing-forkN(tlenRoRQ(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	RRQt
executableR](tprog((s-/usr/lib/python2.6/multiprocessing/forking.pyRp/s&
cCsttid}ti|ti}ti|d}tt	i
_t|}t
|t|}tt	i
_|i|i}t|dS(s>
        Run code specifed by data received over pipe
        itrbN(RxR,RRmtopen_osfhandleR1tO_RDONLYRwRoRRt_inheritingRWtprepareRQRR6R(Retfdtfrom_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_DIRRRRtgetEffectiveLeveltWINEXERR4R1tisabsRqtnormpath(RRRtdR((s-/usr/lib/python2.6/multiprocessing/forking.pyRu_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
jo4ddk}|djo
d}nWtii|ido%tiitii|g}ntii|g}|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
startswithtfind_moduletload_moduleRRt__dict__tvaluesRt	Exception(
tdataRt	main_nameRtdirsRZt	path_nametetctmain_moduleR((s-/usr/lib/python2.6/multiprocessing/forking.pyRsX








"
"


%
	(DR1R,RLtmultiprocessingRRt__all__RtpickleR
RR RR
tsaveR"tlistRRxt__add__t	functoolsR#tImportErrorR)R$tplatformRBR7RtdupRRtobjectRRRmR`t_multiprocessingR*RTRURVRWRXRRYRRRQRtExitProcesstCloseHandleRtlowertendswithRRqtexec_prefixR]R_RRRpRRuRRR(((s-/usr/lib/python2.6/multiprocessing/forking.pyt<module>	sj	
							="				
N						"		

ACC SHELL 2018