WcI @ddlZddlZddlmZdgZGddeZdS)N)utilPopencbeZdZdZdZdZejfdZd dZ dZ dZ d Z d Z d ZdS) rforkcrtjd|_d|_|j |dSN)r_flush_std_streams returncode finalizer_launch)self process_objs 3/usr/lib64/python3.12/multiprocessing/popen_fork.py__init__zPopen.__init__s4 !! [!!!!c|Sr )rfds rduplicate_for_childzPopen.duplicate_for_childs rc|jR tj|j|\}}||jkrtj ||_|jS#t$rYdSwxYwr )r oswaitpidpidOSErrorwaitstatus_to_exitcode)rflagrstss rpollz Popen.pollsz ?? " ::dhh5S dhh"$";";C"@    tt s%A++ A98A9Nc|jM|ddlm}||jg|sdS|j |dkrt j SdS|jS)Nr)waitg)r multiprocessing.connectionr!sentinelrrWNOHANG)rtimeoutr!s rr!z Popen.wait$sk ?? "";;;;;;tT]]OW554997c>>RZZA AqA Arc|j% tj|j|dSdS#t$rYdSt $r|j dYdSwxYw)Ng?)r%)r rkillrProcessLookupErrorrr!)rsigs r _send_signalzPopen._send_signal.s ?? " #&&&& # "&      99S9)1211 s"4 A"A"!A"cH|jtjdSr )r*signalSIGTERMrs r terminatezPopen.terminate8 &..))))rcH|jtjdSr )r*r,SIGKILLr.s rr'z Popen.kill;r0rczd}tj\}}tj\}}tj|_|jdkr[ tj|tj||j |}tj |dStj|tj|tj|tj||f|_ ||_ dS#tj |wxYw)Nrr)parent_sentinel) rpiperrclose _bootstrap_exitrFinalize close_fdsr r#)rrcodeparent_rchild_wchild_rparent_ws rr z Popen._launch>sGGI'GGI779 88q== """""--g-F HHW   HHW  !]]4,4h+@BDN$DMMM s !AD!!D:cD|j|jdSdSr )r r.s rr6z Popen.closeQs' >> % NN     & %rr )__name__ __module__ __qualname__methodrrrr$rr!r*r/r'r r6rrrrr s F"""     ******%%%&r)rr,r__all__objectrrrrrHsh  ) GGGGGFGGGGr