AlkantarClanX12

Your IP : 18.216.104.106


Current Path : /opt/alt/python33/lib64/python3.3/multiprocessing/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/multiprocessing/__pycache__/forking.cpython-33.pyo

�
��f�9c
@s�ddlZddlZddlZddlZddlmZmZdddddgZdd�Zdd	l	m
Z
dd
lmZGdd�de
�Z
dd
�ZGdd�d�Ze
jee�j�e�dd�Ze
jeej�e�e
jeej�e�yddlmZWnek
r>Yn)Xdd�Zdd�Ze
jee�ejdkr�ejZej Z Gdd�de!�Z"n+ddl#Z#ddl$Z$ddl%Z%ddl	m&Z&m'Z'ddd�Z)dZ*ejdkoe+edd0�Z-ej.j/�j0d�Z1e%j2Z e1rSej3j4ej5d�a6n	ej.a6d d!�Z7dd0d"d�ZGd#d�de!�Z"d$d%�Z8d&d'�Z9d(d)�Z:d*d+�Z;d,d-�Z<gZ=d.d/�Z>dS(1iN(uutiluprocessuPopenuassert_spawningu	duplicateucloseuForkingPicklercCs,tj�s(tdt|�j��ndS(NuF%s objects should only be shared between processes through inheritance(uPopenuthread_is_spawninguRuntimeErrorutypeu__name__(uself((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyuassert_spawnings(uPickler(udispatch_tablecBs8|EeZdZiZdd�Zedd��ZdS(uForkingPicklercGs6tj||�tj�|_|jj|j�dS(N(uPickleru__init__udispatch_tableucopyuupdateu_extra_reducers(uselfuargs((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyu__init__'suForkingPickler.__init__cCs||j|<dS(N(u_extra_reducers(uclsutypeureduce((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyuregister+suForkingPickler.registerN(u__name__u
__module__u__qualname__u_extra_reducersu__init__uclassmethoduregister(u
__locals__((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyuForkingPickler%scCsE|jdkr(t|j|jjffSt|j|jjffSdS(N(u__self__uNoneugetattru	__class__u__func__u__name__(um((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyu_reduce_method/su_reduce_methodcBs |EeZdZdd�ZdS(u_CcCsdS(N((uself((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyuf5su_C.fN(u__name__u
__module__u__qualname__uf(u
__locals__((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyu_C4su_CcCst|j|jffS(N(ugetattru__objclass__u__name__(um((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyu_reduce_method_descriptor:su_reduce_method_descriptor(upartialcCs"t|j|j|jpiffS(N(u_rebuild_partialufuncuargsukeywords(up((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyu_reduce_partialDsu_reduce_partialcCst|||�S(N(upartial(ufuncuargsukeywords((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyu_rebuild_partialFsu_rebuild_partialuwin32cBs_|EeZdZdd�Zejdd�Zddd�Zdd�Z	e
d	d
��ZdS(uPopencCs�tjj�tjj�d|_tj�\}}||_tj	�|_
|j
dkr�tj|�dtjkr�ddl
}|j�n|j�}tj|�ntj|�tj|tj|f�dS(Niurandom(usysustdoutuflushustderruNoneu
returncodeuosupipeusentineluforkupiducloseumodulesurandomuseedu
_bootstrapu_exituutiluFinalize(uselfuprocess_objuruwurandomucode((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyu__init__Ys

		


uPopen.__init__cCs�|jdkr�xjytj|j|�\}}WnDtjk
rw}z!|jtjkrawndSWYdd}~XqXPq||jkr�tj|�r�tj	|�|_q�tj
|�|_q�n|jS(N(u
returncodeuNoneuosuwaitpidupiduerroruerrnouEINTRuWIFSIGNALEDuWTERMSIGuWEXITSTATUS(uselfuflagupidustsue((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyupollosu
Popen.pollcCsp|jdkri|dk	rGddlm}||jg|�sGdSn|j|dkrbtjnd�S|jS(Ni(uwaitg(u
returncodeuNoneumultiprocessing.connectionuwaitusentinelupolluosuWNOHANG(uselfutimeoutuwait((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyuwait�s"u
Popen.waitcCsc|jdkr_ytj|jtj�Wq_tk
r[|jdd�dkrW�nYq_XndS(Nutimeoutg�������?(	u
returncodeuNoneuosukillupidusignaluSIGTERMuOSErroruwait(uself((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyu	terminate�s
uPopen.terminatecCsdS(NF(uFalse(((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyuthread_is_spawning�suPopen.thread_is_spawningN(u__name__u
__module__u__qualname__u__init__uosuWNOHANGupolluNoneuwaitu	terminateustaticmethoduthread_is_spawning(u
__locals__((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyuPopenWs

(uloaduHIGHEST_PROTOCOLcCst||�j|�dS(N(uForkingPicklerudump(uobjufileuprotocol((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyudump�sudumpiufrozenupythonservice.exeu
python.execCs
|adS(N(u_python_exe(uexe((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyuset_executable�suset_executablecCs@|dkrtj�}ntjtj�||d|tj�S(Ni(uNoneu_winapiuGetCurrentProcessuDuplicateHandleuDUPLICATE_SAME_ACCESS(uhandleutarget_processuinheritable((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyu	duplicate�s
cBs}|EeZdZdZej�Zdd�Zedd��Z	edd��Z
ddd	�Zd
d�Z
dd
�ZdS(uPopenuH
        Start a subprocess to run the code of a process object
        cCsmdjdd�t�D��}t|j�}tj�\}}ttj|�dd
�}tj
|�t|ddd
���}zLtj
t|d|dddd	ddd�	\}}	}
}tj|	�Wdt
|�X|
|_d|_||_t|�|_tj|tj|jf�t|�tj_z$t||t�t||t�Wdtj`XWdQXdS(Nu css|]}d|VqdS(u"%s"N((u.0ux((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyu	<genexpr>�su!Popen.__init__.<locals>.<genexpr>uinheritableuwbuclosefdu %siiT(ujoinuget_command_lineuget_preparation_datau_nameuosupipeu	duplicateumsvcrtu
get_osfhandleuTrueucloseuopenu_winapiu
CreateProcessu_python_exeuNoneuCloseHandleupidu
returncodeu_handleuintusentineluutiluFinalizeuPopenu_tlsuprocess_handleudumpuHIGHEST_PROTOCOL(uselfuprocess_objucmdu	prep_dataurfduwfdurhandleuto_childuhpuhtupidutid((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyu__init__�s,
'			uPopen.__init__cCsttjdd�dk	S(Nuprocess_handle(ugetattruPopenu_tlsuNone(((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyuthread_is_spawning�suPopen.thread_is_spawningcCst|tjj�S(N(u	duplicateuPopenu_tlsuprocess_handle(uhandle((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyuduplicate_for_childsuPopen.duplicate_for_childcCs�|jdkr�|dkr'tj}ntdt|dd��}tjt|j�|�}|tjkr�tj	|j�}|t
kr�tj}n||_q�n|jS(Nii�g�?(
u
returncodeuNoneu_winapiuINFINITEumaxuintuWaitForSingleObjectu_handleu
WAIT_OBJECT_0uGetExitCodeProcessu	TERMINATEusignaluSIGTERM(uselfutimeoutumsecsuresucode((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyuwaits
u
Popen.waitcCs|jdd�S(Nutimeouti(uwait(uself((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyupollsu
Popen.pollcCsf|jdkrbytjt|j�t�Wqbtk
r^|jdd�dkrZ�nYqbXndS(Nutimeoutg�?(	u
returncodeuNoneu_winapiuTerminateProcessuintu_handleu	TERMINATEuOSErroruwait(uself((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyu	terminates
uPopen.terminateN(u__name__u
__module__u__qualname__u__doc__u_threadu_localu_tlsu__init__ustaticmethoduthread_is_spawninguduplicate_for_childuNoneuwaitupollu	terminate(u
__locals__((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyuPopen�s%cCs.t|�dkr&|ddkr&dSdSdS(uE
        Return whether commandline indicates we are forking
        iiu--multiprocessing-forkNTF(ulenuTrueuFalse(uargv((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyu
is_forking#s"u
is_forkingcCs'ttj�r#t�tj�ndS(uM
        Run code for process object if this in not the main process
        N(u
is_forkingusysuargvumainuexit(((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyufreeze_support.sufreeze_supportcCstttj�dd�r'td��nttdd�rFtjdgSd}tj�}t	g|d|dgSdS(	uR
        Returns prefix of command line used for spawning a child process
        u_inheritingu�
            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.ufrozenu--multiprocessing-forku0from multiprocessing.forking import main; main()u-cNF(
ugetattruprocessucurrent_processuFalseuRuntimeErrorusysu
executableuutilu_args_from_interpreter_flagsu_python_exe(uproguopts((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyuget_command_line7s
uget_command_linecCs�ttjd�}tj|tj�}tj|d�}dt	j
�_t|�}t
|�t|�}dt	j
�_|j�|j�}tj|�dS(u?
        Run code specified by data received over pipe
        iurbNi����TF(uintusysuargvumsvcrtuopen_osfhandleuosuO_RDONLYufdopenuTrueuprocessucurrent_processu_inheritinguloaduprepareuFalseucloseu
_bootstrapuexit(uhandleufdufrom_parentupreparation_datauselfuexitcode((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyumainRs

umainc
Cs.ddlm}m}td|dtjdtjd|dtjdtj	�j
�}|dk	rt|j�|d	<nt
r*tr*ttjd
dd�}|r�tjddkr�tjd}n|dk	r*tjj|�rtjdk	rtjjtj|�}ntjj|�|d<q*n|S(uU
        Return info about parent needed by child to unpickle process object
        i(u_loggeru_log_to_stderrunameusys_pathusys_argvu
log_to_stderruorig_diruauthkeyu	log_levelu__main__u__file__iuu-cu	main_pathN(uu-c(uutilu_loggeru_log_to_stderrudictusysupathuargvuprocessuORIGINAL_DIRucurrent_processuauthkeyuNoneugetEffectiveLeveluWINEXEu
WINSERVICEugetattrumodulesuosuisabsujoinunormpath(unameu_loggeru_log_to_stderrudu	main_path((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyuget_preparation_datahs(			uget_preparation_datac
Cs�tjtjd�d|kr6|dtj�_nd|krX|dtj�_nd|kr{|dr{tj	�nd|kr�tj
�j|d�nd|kr�|dt_nd|kr�|dt_
nd|kr�tj|d�nd	|kr|d	t_nd
|kr�|d
}tjjtjj|��d}|dkrztjjtjj|��}n|dkr�tjd}||_q�|d
kr�ddl}|dkr�d}nTtjj|�jd�rtjjtjj|��g}ntjj|�g}|j||�\}}}z|jd|||�}Wd|rm|j�nX|tjd<d|_xTt|jj��D]:}	y|	jdkr�d|	_nWq�t k
r�Yq�Xq�Wq�ndS(uE
    Try to get current process ready to unpickle process object
    u__main__unameuauthkeyu
log_to_stderru	log_levelusys_pathusys_argvudiruorig_diru	main_pathiu__init__uipythonNu__init__.pyu__parents_main__(!uold_main_modulesuappendusysumodulesuprocessucurrent_processunameu_authkeyuutilu
log_to_stderru
get_loggerusetLevelupathuargvuosuchdiruORIGINAL_DIRusplitextubasenameudirnameu__file__uimpuNoneu
startswithufind_moduleuload_moduleucloseu__name__ulistu__dict__uvaluesu
__module__u	Exception(
udatau	main_pathu	main_nameumain_moduleuimpudirsufileu	path_nameuetcuobj((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyuprepare�s\

"!
	$
	
uprepareF(?uosusysusignaluerrnoumultiprocessinguutiluprocessu__all__uassert_spawningupickleuPicklerucopyregudispatch_tableuForkingPickleru_reduce_methodu_Curegisterutypeufu_reduce_method_descriptorulistuappenduintu__add__u	functoolsupartialuImportErroru_reduce_partialu_rebuild_partialuplatformudupu	duplicateucloseuobjectuPopenu_threadumsvcrtu_winapiuloaduHIGHEST_PROTOCOLuNoneudumpu	TERMINATEugetattruFalseuWINEXEu
executableuloweruendswithu
WINSERVICEuCloseHandleupathujoinuexec_prefixu_python_exeuset_executableu
is_forkingufreeze_supportuget_command_lineumainuget_preparation_datauold_main_modulesuprepare(((u</opt/alt/python33/lib64/python3.3/multiprocessing/forking.pyu<module>
s`

		H!		
R	"