VcBddlZddlZddlZddlZddlZddlmZmZmZddl m Z ddl m Z dgZ dZ ejdko eed d Zejd Zd Zeejej Zd ZGddeZdS)N) reductionget_spawning_popenset_spawning_popen)spawn)utilPopeniwin32frozenFzpythonservice.exec||kp?tj|tj|kSN)ospathnormcase)p1p2s :/usr/lib64/python3.11/multiprocessing/popen_spawn_win32.py_path_eqrs6 8 Crw''++rw/?/?/C/CCCc8|D]}tj|dSr )_winapi CloseHandle)handleshandles r_close_handlesrs/$$F####$$rc>eZdZ dZdZdZd dZdZdZeZ dZ dS) r rc xtj|j}tjdd\}}t j|d}tjtj |}tj }trYt|tjr?tjx|d<}tj}tj|d<nd}dd|D}t'|dd5} tj||ddd d|dd \} } } } tj| n#tj|xYw| |_d|_| |_t3| |_t7j|t:|jt3|f|_t?| tAj!|| tAj!|| t?dn#t?dwxYw ddddS#1swxYwYdS) Nr) parent_pid pipe_handle__PYVENV_LAUNCHER__ c3 K|] }d|zV dS)z"%s"N).0xs r z!Popen.__init__..Es&//avz//////rwbT)closefdF)"rget_preparation_data_namer CreatePipemsvcrtopen_osfhandleget_command_linergetpidget_executableWINENVrsys executable_base_executableenvironcopyjoinopen CreateProcessrpid returncode_handleintsentinelrFinalizer finalizerrrdump)self process_obj prep_datarhandlewhandlewfdcmd python_exeenvto_childhphtr:tids r__init__zPopen.__init__,sr.{/@AA #-dA66#GQ//$ 18:::)++   hz3>:: "%"6 6CFZ*//##C),C% & &Chh//3///// #tT * * * )h #*#8$q#tT$;$; BS#B'''' #G,,,DH"DODLGGDM!]4,0M3w<<+HJJDN t $ $ $ )y(333{H555"4(((("4(((((3 ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )sCH/5E  H/ E##A/H/*H =H/ HH//H36H3c6tj||jSr )r duplicater>)rBrs rduplicate_for_childzPopen.duplicate_for_childbs"64=999rNc`|j| tj}n#tdt |dzdz}tjt |j|}|tjkr8tj|j}|tkr tj }||_|jS)Nrig?) r;rINFINITEmaxr=WaitForSingleObjectr< WAIT_OBJECT_0GetExitCodeProcess TERMINATEsignalSIGTERM)rBtimeoutmsecsrescodes rwaitz Popen.waitfs ? ' :(As7T>C#78899-c$,.?.?GGCg++ '1$,??9$+"N?D"&rc.|dS)Nrr\)r`rBs rpollz Popen.pollvsyyy###rc|jW tjt|jt dS#t $r|dYdSwxYwdS)Ng?rb)r;rTerminateProcessr=r<rYOSErrorr`rcs r terminatezPopen.terminateys ?  (T\):):IFFFFF   99S9))   s,7!AAc.|dSr )r@rcs rclosez Popen.closes rr ) __name__ __module__ __qualname__methodrOrRr`rdrhkillrjr#rrr r &sF4)4)4)l::: $$$ Dr)rr,rZr2rcontextrrrrr__all__rYplatformgetattrWINEXEr3lowerendswith WINSERVICErr4r1robjectr r#rrrzs= FFFFFFFFFF )  ,' ! Cggc8U&C&C ^ ! ! # # , ,-@ A A DDDXcnc&: ; ; ;$$$^^^^^F^^^^^r