tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
]\¬Qc@sddlZddlZddlZddlZddlmZmZddddddgZd    „Zdd
l    m
Z
de
fd „ƒYZ d „Z e j ee jƒe ƒd „Ze j eejƒeƒe j eejƒeƒyddlmZWnek
rn#Xd„Zd„Ze j eeƒejdkrƒddlZejZejZej Z de!fd„ƒYZ"n}ddl#Z#ddl$Z$ddl%Z%ddlZddl&m'Z'm(Z(m)Z)ddlm*Z*ddl    m+Z+m,Z,dd„Z.dZ/ejdko%e0ede1ƒZ2ej3j4ƒj5dƒZ6e'j7Ze'j8Z e6rsej9j:ej;dƒa<n    ej3a<d„Z=de1d„Zde!fd„ƒYZ"d„Z>d „Z?d!„Z@d"„ZAd#„ZBd$„ZCe j e(eCƒe j e)eCƒgZDd%„ZEdS(&iÿÿÿÿN(tutiltprocesstPopentassert_spawningtexitt    duplicatetclosetForkingPicklercCs,tjƒs(tdt|ƒjƒ‚ndS(NsF%s objects should only be shared between processes through inheritance(Rtthread_is_spawningt RuntimeErrorttypet__name__(tself((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyR0s (tPicklercBs&eZejjƒZed„ƒZRS(cs ‡fd†}||j|<dS(Ncs#ˆ|ƒ}|jd||ŒdS(Ntobj(t save_reduce(R Rtrv(treduce(s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyt
dispatcherAs (tdispatch(tclsR
RR((Rs_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pytregister?s(R t
__module__R Rtcopyt classmethodR(((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyR<scCsE|jdkr(t|j|jjffSt|j|jjffSdS(N(tim_selftNonetgetattrtim_classtim_funct    func_name(tm((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyt_reduce_methodFscCst|j|jffS(N(Rt __objclass__R (R((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyt_reduce_method_descriptorMs(tpartialcCs"t|j|j|jpiffS(N(t_rebuild_partialtfunctargstkeywords(tp((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyt_reduce_partial\scCst|||ŽS(N(R#(R%R&R'((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyR$^stwin32cBsDeZd„Zejd„Zdd„Zd„Ze    d„ƒZ
RS(cCs£tjjƒtjjƒd|_tjƒ|_|jdkrŸdtj    kriddl
}|j ƒn|j ƒ}tjjƒtjjƒtj |ƒndS(Nitrandomiÿÿÿÿ(tsyststdouttflushtstderrRt
returncodetostforktpidtmodulesR+tseedt
_bootstrapt_exit(R t process_objR+tcode((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyt__init__ts           cCsÖ|jdkrÏx\trmytj|j|ƒ\}}Wn/tjk
rh}|jtjkrdqndSXPqW||jkrÏtj    |ƒr¢tj
|ƒ |_qÌtj |ƒs·t ‚tj |ƒ|_qÏn|jS(N(R0RtTrueR1twaitpidR3terrorterrnotEINTRt WIFSIGNALEDtWTERMSIGt    WIFEXITEDtAssertionErrort WEXITSTATUS(R tflagR3tstste((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pytpollƒs    cCs˜|dkr|jdƒStjƒ|}d}xb|jƒ}|dk    rNPn|tjƒ}|dkrnPnt|d|dƒ}tj|ƒq2|S(Nigü©ñÒMb@?igš™™™™™©?(RRHttimetmintsleep(R ttimeouttdeadlinetdelaytrest    remaining((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pytwait˜s     cCsd|jdkr`ytj|jtjƒWq`tk
r\}|jddƒdkr]‚q]q`XndS(NRLgš™™™™™¹?(    R0RR1tkillR3tsignaltSIGTERMtOSErrorRQ(R RG((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyt    terminate¨s cCstS(N(tFalse(((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyR°sN( R RR:R1tWNOHANGRHRRQRVt staticmethodR(((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyRrs
         (R*t
ConnectiontPipeConnectioni(tFinalize(tloadtHIGHEST_PROTOCOLcCst||ƒj|ƒdS(N(Rtdump(Rtfiletprotocol((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyR_Æsitfrozenspythonservice.exes
python.execCs
|adS(N(t _python_exe(texe((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pytset_executableÞscCsF|dkrtjƒ}ntjtjƒ||d|tjƒjƒS(Ni(Rt _subprocesstGetCurrentProcesstDuplicateHandletDUPLICATE_SAME_ACCESStDetach(thandlettarget_processt inheritable((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyRæs
 cBs_eZdZejƒZd„Zed„ƒZed„ƒZ    dd„Z d„Z d„Z RS(sH
        Start a subprocess to run the code of a process object
        c
Cs7tjƒ\}}ttj|ƒdtƒ}tj|ƒtƒ|g}djd„|Dƒƒ}t    j
t |dddddddƒ    \}}}}    |j ƒt|ƒ||_d|_||_t|jƒ}
tj|dƒ} t|ƒtj_z$t|
| tƒt|| tƒWdtj`| jƒXdS(NRmt css|]}d|VqdS(s"%s"N((t.0tx((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pys    <genexpr>siitwb(R1tpipeRtmsvcrtt get_osfhandleR;Rtget_command_linetjoinRft CreateProcessRcRtCloseR3R0t_handletget_preparation_datat_nametfdopentintRt_tlstprocess_handleR_R^( R R8trfdtwfdtrhandletcmdthpthtR3ttidt    prep_datatto_child((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyR:ùs( -
 
                cCsttjddƒdk    S(NR(RRR~R(((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyRscCst|tjjƒS(N(RRR~R(Rk((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pytduplicate_for_childscCs¯|jdkr¨|dkr'tj}ntdt|ddƒƒ}tjt|jƒ|ƒ}|tjkr¨tj    |jƒ}|t
kr™t j }n||_q¨n|jS(Niiègà?( R0RRftINFINITEtmaxR}tWaitForSingleObjectRyt WAIT_OBJECT_0tGetExitCodeProcesst    TERMINATERSRT(R RLtmsecsROR9((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyRQ"s    cCs|jddƒS(NRLi(RQ(R ((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyRH2scCse|jdkraytjt|jƒtƒWqatk
r]|jddƒdkr^‚q^qaXndS(NRLgš™™™™™¹?(    R0RRftTerminateProcessR}RyRt WindowsErrorRQ(R ((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyRV5s  N(R Rt__doc__tthreadt_localR~R:RYRR‰RRQRHRV(((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyRós     !     cCsFt|ƒdkr>|ddkr>t|ƒdks:t‚tStSdS(sE
        Return whether commandline indicates we are forking
        iis--multiprocessing-forkiN(tlenRCR;RW(targv((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyt
is_forkingAs"cCs'ttjƒr#tƒtjƒndS(sM
        Run code for process object if this in not the main process
        N(R˜R,R—tmainR(((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pytfreeze_supportLscCstttjƒdtƒr'tdƒ‚nttdtƒrFtjdgSd}tjƒ}t    g|d|dgSdS(sR
        Returns prefix of command line used for spawning a child process
        t _inheritings÷
            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.Rbs--multiprocessing-forks0from multiprocessing.forking import main; main()s-cN(
RRtcurrent_processRWR    R,t
executableRt_args_from_interpreter_flagsRc(tprogtopts((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyRuUs   cCs³ttjƒst‚ttjdƒ}tj|tjƒ}tj    |dƒ}t
t j ƒ_ t|ƒ}t|ƒt|ƒ}tt j ƒ_ |jƒ|jƒ}t|ƒdS(s>
        Run code specifed by data received over pipe
        iÿÿÿÿtrbN(R˜R,R—RCR}Rstopen_osfhandleR1tO_RDONLYR|R;RRœR›R]tprepareRWRR6R(Rktfdt from_parenttpreparation_dataR texitcode((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyR™ps 
 
 c Cs.ddlm}m}td|dtjdtjd|dtjdtj    ƒj
ƒ}|dk    rt|j ƒ|d    <nt r*t r*ttjd
d dƒ}| rÅtjd dkrÅtjd }n|dk    r*tjj|ƒ rtjdk    rtjjtj|ƒ}ntjj|ƒ|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(R´s-c(RR©RªtdictR,tpathR—Rt ORIGINAL_DIRRœR°RtgetEffectiveLeveltWINEXEt
WINSERVICERR4R1tisabsRvtnormpath(R«R©RªtdRµ((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyRz†s(              cCsVtjƒs(tdt|ƒjƒ‚nt|ƒtj|jƒƒ|j|jffS(NsLBy default %s objects can only be shared between processes
using inheritance(    RRR    R
R R‰tfilenotreadabletwritable(tconn((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pytreduce_connection¨s  c
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|d krÍddl}|dkr§d}nTtj j|ƒjdƒrætj jtj j|ƒƒg}ntj j|ƒg}|tjkst|ƒ‚|j||ƒ\}}}z|jd|||ƒ}Wd|rc|jƒnX|tjd<d|_xM|jjƒD]9}    y|    jdkr®d|    _nWqŠtk
rÂqŠXqŠWqÍndS(sE
    Try to get current process ready to unpickle process object
    R²R«R°R®R±R¬R­tdirR¯RµiR:tipythoniÿÿÿÿNs __init__.pyt__parents_main__( told_main_modulestappendR,R4RRœR«t_authkeyRR®t
get_loggertsetLevelR·R—R1tchdirR¸tsplitexttbasenametdirnametimpRt
startswithRCt find_modulet load_moduleRR t__dict__tvaluesRt    Exception(
tdataRµt    main_nameRÐtdirsR`t    path_nametetct main_moduleR((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyR¤ºsX         
" !       $      (FR1R,RSR>tmultiprocessingRRt__all__RtpickleR RR RR
tsaveR"tlistRÈR}t__add__t    functoolsR#t ImportErrorR)R$tplatformRIR7RtdupRRtobjectRR”RsRft_multiprocessingR*RZR[R\R]R^RR_RRRWRºRtlowertendswithR»t ExitProcesst CloseHandleR·Rvt exec_prefixRcReR˜RšRuR™RzRÃRÇR¤(((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyt<module>#sn         
                             G     !                 N                        "