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
79
]\¬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 |ƒ|_qºn|jS(N( R0RtTrueR1twaitpidR3terrorterrnotEINTRt WIFSIGNALEDtWTERMSIGt 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š™™™™™©?(RRFttimetmintsleep(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(NRJgš™™™™™¹?(    R0RR1tkillR3tsignaltSIGTERMtOSErrorRO(R RE((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:R1tWNOHANGRFRRORTt 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(NRkt 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_linetjoinRdt CreateProcessRaRtCloseR3R0t_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}(Ri((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à?( R0RRdtINFINITEtmaxR{tWaitForSingleObjectRwt WAIT_OBJECT_0tGetExitCodeProcesst    TERMINATERQRR(R RJtmsecsRMR9((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyRO"s    cCs|jddƒS(NRJi(RO(R ((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyRF2scCse|jdkraytjt|jƒtƒWqatk
r]|jddƒdkr^‚q^qaXndS(NRJgš™™™™™¹?(    R0RRdtTerminateProcessR{RwRt WindowsErrorRO(R ((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyRT5s  N(R Rt__doc__tthreadt_localR|R:RWRR‡RRORFRT(((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyRós     !     cCs.t|ƒdkr&|ddkr&tStSdS(sE
        Return whether commandline indicates we are forking
        iis--multiprocessing-forkN(tlenR;RU(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.R`s--multiprocessing-forks0from multiprocessing.forking import main; main()s-cN(
RRtcurrent_processRUR    R,t
executableRt_args_from_interpreter_flagsRa(tprogtopts((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyRsUs   cCsžttjdƒ}tj|tjƒ}tj|dƒ}tt    j
ƒ_ t |ƒ}t |ƒt |ƒ}tt    j
ƒ_ |jƒ|jƒ}t|ƒdS(s>
        Run code specifed by data received over pipe
        iÿÿÿÿtrbN(R{R,R•Rqtopen_osfhandleR1tO_RDONLYRzR;RRšR™R[tprepareRURR6R(Ritfdt 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
WINSERVICERR4R1tisabsRttnormpath(R©R§R¨tdR³((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyRx†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}|j||ƒ\}}}z|jd|||ƒ}Wd|rH|jƒnX|tjd<d|_xM|jjƒD]9}    y|    jdkr“d|    _nWqotk
r§qoXqoWq²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
startswitht 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¢ºsV         
" !       $      (FR1R,RQR>tmultiprocessingRRt__all__RtpickleR RR RR
tsaveR"tlistRÆR{t__add__t    functoolsR#t ImportErrorR)R$tplatformRGR7RtdupRRtobjectRR’RqRdt_multiprocessingR*RXRYRZR[R\RR]RRRUR¸R›tlowertendswithR¹t ExitProcesst CloseHandleRµRtt exec_prefixRaRcR–R˜RsR—RxRÁRÅR¢(((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/multiprocessing/forking.pyt<module>#sn         
                             G     !                 N                        "