HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //lib/python3.10/multiprocessing/__pycache__/popen_fork.cpython-310.pyc
o

p̦iI	�@s6ddlZddlZddlmZdgZGdd�de�ZdS)�N�)�util�Popenc@s`eZdZdZdd�Zdd�Zejfdd�Zdd	d
�Z	dd�Z
d
d�Zdd�Zdd�Z
dd�ZdS)r�forkcCs"t��d|_d|_|�|�dS�N)r�_flush_std_streams�
returncode�	finalizer�_launch)�self�process_obj�r
�1/usr/lib/python3.10/multiprocessing/popen_fork.py�__init__szPopen.__init__cCs|Srr
)r�fdr
r
r�duplicate_for_childszPopen.duplicate_for_childcCsR|jdur&zt�|j|�\}}Wn
tyYdSw||jkr&t�|�|_|jSr)r�os�waitpid�pid�OSError�waitstatus_to_exitcode)r�flagr�stsr
r
r�polls
�
z
Popen.pollNcCsP|jdur%|durddlm}||jg|�sdS|�|dkr"tj�Sd�S|jS)Nr)�waitg)r�multiprocessing.connectionr�sentinelrr�WNOHANG)r�timeoutrr
r
rr$s
z
Popen.waitcCs\|jdur,z
t�|j|�WdStyYdSty+|jdd�dur(�YdSwdS)Ng�������?)r)rr�killr�ProcessLookupErrorrr)r�sigr
r
r�_send_signal.s
���zPopen._send_signalcC�|�tj�dSr)r"�signal�SIGTERM�rr
r
r�	terminate8�zPopen.terminatecCr#r)r"r$�SIGKILLr&r
r
rr;r(z
Popen.killc	Cs�d}t��\}}t��\}}t��|_|jdkr7zt�|�t�|�|j|d�}Wt�|�dSt�|�wt�|�t�|�t�|tj	||f�|_
||_dS)Nrr)�parent_sentinel)r�piperr�close�
_bootstrap�_exitr�Finalize�	close_fdsr	r)rr�code�parent_r�child_w�child_r�parent_wr
r
rr
>s 






�
z
Popen._launchcCs|jdur|��dSdSr)r	r&r
r
rr,Qs
�zPopen.closer)�__name__�
__module__�__qualname__�methodrrrrrrr"r'rr
r,r
r
r
rrs


)rr$�r�__all__�objectrr
r
r
r�<module>s