VcI DddlZddlZddlmZdgZGddeZdS)N)utilPopencXeZdZdZdZdZejfdZd dZ dZ dZ d Z d Z d ZdS) rforkcrtjd|_d|_||dSN)r_flush_std_streams returncode finalizer_launch)self process_objs 3/usr/lib64/python3.11/multiprocessing/popen_fork.py__init__zPopen.__init__s7 !!! [!!!!!c|Sr )rfds rduplicate_for_childzPopen.duplicate_for_childs rc|jT tj|j|\}}n#t$rYdSwxYw||jkrtj||_|jSr )r oswaitpidpidOSErrorwaitstatus_to_exitcode)rflagrstss rpollz Popen.pollsz ? A :dh55SS   tt dh A"$";C"@"@s ' 55Nc|jC|ddlm}||jg|sdS||dkr t jndS|jS)Nr)waitg)r multiprocessing.connectionr!sentinelrrWNOHANG)rtimeoutr!s rr!z Popen.wait$sm ? B ;;;;;;tT]OW55 4997c>@RZZqAA Arc|jQ tj|j|dS#t$rYdSt $r|dYdSwxYwdS)Ng?)r%)r rkillrProcessLookupErrorrr!)rsigs r _send_signalzPopen._send_signal.s ?  #&&&&&%      99S9))    s% A AAcD|tjdSr )r*signalSIGTERMrs r terminatezPopen.terminate8 &.)))))rcD|tjdSr )r*r,SIGKILLr.s rr'z Popen.kill;r0rc0d}tj\}}tj\}}tj|_|jdkrn tj|tj|||}tj|dS#tj|wxYwtj|tj|tj|tj ||f|_ ||_ dS)Nrr)parent_sentinel) rpiperrclose _bootstrap_exitrFinalize close_fdsr r#)rrcodeparent_rchild_wchild_rparent_ws rr z Popen._launch>sGII'GII799 8q= % """""""--g-FF HW    HW   !]4,4h+@BBDN$DMMMs >B''B=c@|j|dSdSr )r r.s rr6z Popen.closeQs, >  NN       rr )__name__ __module__ __qualname__methodrrrr$rr!r*r/r'r r6rrrrr s F"""     ******%%%&r)rr,r__all__objectrrrrrHsn  ) GGGGGFGGGGGr