8U D d dl Z d dlZddlmZ dgZ G d de ZdS ) N )utilPopenc X e Zd ZdZd Zd Zej fdZddZ d Z
d Zd Zd
Z
d ZdS )
r forkc r t j d | _ d | _ | | d S N)r _flush_std_streams
returncode finalizer_launch)selfprocess_objs A/opt/alt/python311/lib64/python3.11/multiprocessing/popen_fork.py__init__zPopen.__init__ s7 !!![!!!!! c |S r )r fds r duplicate_for_childzPopen.duplicate_for_child s r c | j T t j | j | \ }}n# t $ r Y d S w xY w|| j k rt j | | _ | j S r )r oswaitpidpidOSErrorwaitstatus_to_exitcode)r flagr stss r pollz
Popen.poll ss ?"
:dh55SS
tt
dh"$";C"@"@s '
55Nc | j C|ddlm} || j g| sd S | |dk rt
j nd S | j S )Nr )waitg )r multiprocessing.connectionr! sentinelr r WNOHANG)r timeoutr! s r r! z
Popen.wait$ sg ?"";;;;;;tT]OW55 4997c>>RZZqAAAr c | j Q t j | j | d S # t $ r Y d S t
$ r | d Y d S w xY wd S )Ng?)r% )r r killr ProcessLookupErrorr r! )r sigs r _send_signalzPopen._send_signal. s ?"
#&&&&&%
99S9))1 211
#"s %
A AAc D | t j d S r )r* signalSIGTERMr s r terminatezPopen.terminate8 &.)))))r c D | t j d S r )r* r, SIGKILLr. s r r' z
Popen.kill; r0 r c 0 d}t j \ }}t j \ }}t j | _ | j dk rn t j | t j | | | }t j | d S # t j | w xY wt j | t j | t j | t j ||f | _
|| _ d S )Nr r )parent_sentinel)r piper r close
_bootstrap_exitr Finalize close_fdsr r# )r r codeparent_rchild_wchild_rparent_ws r r
z
Popen._launch> s GII'GII7998q==
"""""""--g-FFHWHW!]4,4h+@B BDN$DMMMs >B' 'B=c @ | j | d S d S r )r r. s r r6 zPopen.closeQ s( >%NN &%r r )__name__
__module____qualname__methodr r r r$ r r! r* r/ r' r
r6 r r r r r s
F" " "
* * ** * *% % %& r )r r, r __all__objectr r r r