WcI cs@ddlZddlZddlmZdgZGddeZdS)N)utilPopencsbeZdZdZdZdZejfdZd dZ dZ dZ d Z d Z d ZdS) rforkcsrtjd|_d|_|j |dSN)rZ_flush_std_streams returncode finalizer_launch)self process_obj 3/usr/lib64/python3.12/multiprocessing/popen_fork.py__init__zPopen.__init__s4 !! [!!!!cs|Sr)r Zfdr r duplicate_for_childzPopen.duplicate_for_childs rcs|jR tj|j|\}}||jkrtj ||_|jS#t$rYdSwxYwr)rosZwaitpidpidOSErrorZwaitstatus_to_exitcode)r ZflagrZstss r pollz Popen.pollsz ?? " ::dhh5S dhh"$";";C"@    tt s%A++ A98A9Ncs|jM|ddlm}||jg|sdS|j |dkrt j SdS|jS)Nr)waitg)rZmultiprocessing.connectionrsentinelrrWNOHANG)r timeoutrs r rz Popen.wait$sk ?? "";;;;;;tT]]OW554997c>>RZZA AqA Arcs|j% tj|j|dSdS#t$rYdSt $r|j dYdSwxYw)Ng?)r)rrkillrZProcessLookupErrorrr)r Zsigr r _send_signalzPopen._send_signal.s ?? " #&&&& # "&      99S9)1211 s"4 A"A"!A"cH|jtjdSr)rsignalZSIGTERMr  r terminatezPopen.terminate8 &..))))rcrr)rrZSIGKILLrrr rz Popen.kill;r rcszd}tj\}}tj\}}tj|_|jdkr[ tj|tj||j |}tj |dStj|tj|tj|tj||f|_ ||_ dS#tj |wxYw)Nrr)Zparent_sentinel) rZpiperrcloseZ _bootstrapZ_exitrZFinalizeZ close_fdsrr)r r ZcodeZparent_rZchild_wZchild_rZparent_ws r rz Popen._launch>sGGI'GGI779 88q== """""--g-F HHW   HHW  !]]4,4h+@BDN$DMMM s !AD!!D:csD|j|jdSdSr)rrrr r!z Popen.closeQs' >> % NN     & %rr)Z__name__Z __module__Z __qualname__Zmethodr rrrrrrrrrr!rrr rr s F"""     ******%%%&r)rrZrZ__all__Zobjectrrrr r"sh  ) GGGGGFGGGGr