File "process.cpython-35.opt-1.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python35/lib64/python3.5/multiprocessing/__pycache__/process.cpython-35.opt-1.pyc
File size: 7.91 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit



Yf#@svdddgZddlZddlZddlZddlZddlmZyejjej	Z
Wnek
rdZ
YnXddZddZ
dd	ZGd
ddeZGdddeZGd
ddeZeaejdaea[iZxPeejjD]9\ZZedddkr,dekr,eee<q,WeZdS)BaseProcesscurrent_processactive_childrenN)WeakSetcCstS)z@
    Return process object representing the current process
    )_current_processrr</opt/alt/python35/lib64/python3.5/multiprocessing/process.pyr#scCstttS)zN
    Return list of process objects corresponding to live child processes
    )_cleanuplist	_childrenrrrrr)scCs=x6ttD](}|jjdk	r
tj|q
WdS)N)r
r_popenpolldiscard)prrrr	4sr	c	@sKeZdZdZddZdddfiddddZdd	Zd
dZdd
ZdddZ	ddZ
eddZej
ddZeddZej
ddZeddZej
ddZeddZeddZeZedd Zd!d"Zd#d$ZdS)%rz
    Process objects represent activity that is run in a separate process

    The class is analogous to `threading.Thread`
    cCs
tdS)N)NotImplementedError)selfrrr_PopenDszBaseProcess._PopenNdaemoncCstt}tj|f|_tjj|_tj|_d|_	||_
t||_t
||_|pt|jddjdd|jD|_|dk	r||_tj|dS)N-:css|]}t|VqdS)N)str).0irrr	<genexpr>Ssz'BaseProcess.__init__.<locals>.<genexpr>)next_process_counterr	_identity_configcopyosgetpid_parent_pidr_targettuple_argsdict_kwargstype__name__join_namer	_danglingadd)rgrouptargetnameargskwargsrcountrrr__init__Gs		#	zBaseProcess.__init__cCs#|jr|j|j|jdS)zQ
        Method to be run in sub-process; can be overridden in sub-class
        N)r"r$r&)rrrrrunXs	zBaseProcess.runcCsKt|j||_|jj|_|`|`|`tj	|dS)z%
        Start child process
        N)
r	rrsentinel	_sentinelr"r$r&rr,)rrrrstart_s
	zBaseProcess.startcCs|jjdS)zT
        Terminate process; sends SIGTERM signal or uses TerminateProcess()
        N)r	terminate)rrrrr8pszBaseProcess.terminatecCs/|jj|}|dk	r+tj|dS)z5
        Wait until child process terminates
        N)rwaitrr)rZtimeoutresrrrr)vszBaseProcess.joincCs@|tkrdS|jdkr#dS|jj|jjdkS)z1
        Return whether process is alive
        TNF)rrr

returncode)rrrris_alives
zBaseProcess.is_alivecCs|jS)N)r*)rrrrr/szBaseProcess.namecCs
||_dS)N)r*)rr/rrrr/scCs|jjddS)z4
        Return whether process is a daemon
        rF)rget)rrrrrszBaseProcess.daemoncCs||jd<dS)z1
        Set whether process is a daemon
        rN)r)rZdaemonicrrrrscCs|jdS)Nauthkey)r)rrrrr>szBaseProcess.authkeycCst||jd<dS)z2
        Set authorization key of process
        r>N)AuthenticationStringr)rr>rrrr>scCs#|jdkr|jS|jjS)zM
        Return exit code of process or `None` if it has yet to stop
        N)rr
)rrrrexitcodeszBaseProcess.exitcodecCs-|tkrtjS|jo(|jjSdS)zU
        Return identifier (PID) of process or `None` if it has yet to start
        N)rrr rpid)rrrridents
zBaseProcess.identcCs0y|jSWntk
r+tdYnXdS)z{
        Return a file descriptor (Unix) or handle (Windows) suitable for
        waiting for process termination.
        zprocess not startedN)r6AttributeError
ValueError)rrrrr5s
zBaseProcess.sentinelcCs|tkrd}n]|jtjkr3d}n?|jdkrKd}n'|jjdk	rl|j}nd}t|tkr|dkrd}ndt	j
||}dt|j|j||j
rdpd	fS)
NZstartedunknowninitialrZstoppedzstopped[%s]z<%s(%s, %s%s)>z daemon)rr!rr rr
r@r'int_exitcode_to_namer=r(r*r)rZstatusrrr__repr__s				zBaseProcess.__repr__c Csddlm}m}zgy|jdk	r;|j|jtjdata	|j
t}|az|jj
|jWd~X|jdz|jd}Wd|jXWntk
rA}zd|jsd}nMt|jdtr|jd}n'tjjt|jddd}WYdd}~Xn;d}ddl}tjjd|j|jYnXWd|jd|tjjtjjX|S)N)utilcontextz child process calling self.run()r
zProcess %s:
z process exiting with exitcode %d)rGrLrMZ
_start_methodZ_force_start_method	itertoolsr2rsetrZ_close_stdinrZ_finalizer_registryclearZ_run_after_forkersinfor4Z_exit_function
SystemExitr0
isinstancerHsysstderrwriter	tracebackr/	print_excstdoutflush)rrLrMZold_processr@erXrrr
_bootstrapsD	




		!
zBaseProcess._bootstrap)r(
__module____qualname____doc__rr3r4r7r8r)r<propertyr/setterrr>r@rBrAr5rJr]rrrrr>s*
	
c@seZdZddZdS)r?cCs>ddlm}|dkr+tdtt|ffS)NrK)get_spawning_popenzJPickling an AuthenticationString object is disallowed for security reasons)rMrc	TypeErrorr?bytes)rrcrrr
__reduce__s
	zAuthenticationString.__reduce__N)r(r^r_rfrrrrr?sr?c@seZdZddZdS)_MainProcesscCsLf|_d|_d|_d|_dttjdddi|_dS)NZMainProcessr> Z	semprefixz/mp)rr*r!rr?rurandomr)rrrrr3(s				z_MainProcess.__init__N)r(r^r_r3rrrrrg&srgrKZSIG_) __all__rrUsignalrO_weakrefsetrpathabspathgetcwdZORIGINAL_DIROSErrorrrr	objectrrer?rgrr2rrPrrIr
__dict__itemsr/Zsignumr+rrrr<module>
s0

		""