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_spawn_posix.cpython-310.pyc
o

p̦i��@spddlZddlZddlmZmZddlmZddlmZddlmZdgZ	Gdd	�d	e
�ZGd
d�dej�ZdS)�N�)�	reduction�set_spawning_popen)�
popen_fork)�spawn)�util�Popenc@seZdZdd�Zdd�ZdS)�_DupFdcCs
||_dS�N��fd��selfr�r�8/usr/lib/python3.10/multiprocessing/popen_spawn_posix.py�__init__s
z_DupFd.__init__cCs|jSr
r)rrrr�detachsz
_DupFd.detachN)�__name__�
__module__�__qualname__rrrrrrr	sr	cs4eZdZdZeZ�fdd�Zdd�Zdd�Z�Z	S)rrcsg|_t��|�dSr
)�_fds�superr)r�process_obj��	__class__rrrszPopen.__init__cCs|j�|�|Sr
)r�appendr
rrr�duplicate_for_child"szPopen.duplicate_for_childcCs�ddlm}|��}|j�|�t�|j�}t�	�}t
|�zt�||�t�||�Wt
d�nt
d�wd}}}}	zut
��\}}t
��\}}	tj||d�}
|j�||g�t�t��|
|j�|_||_t|	ddd��}|�|���Wd�n1s�wYWg}||	fD]}
|
dur�|�|
�q�t�|tj|�|_||fD]}
|
dur�t
�|
�q�dSg}||	fD]}
|
dur�|�|
�q�t�|tj|�|_||fD]}
|
dur�t
�|
�q�w)Nr)�resource_tracker)�
tracker_fd�pipe_handle�wbF)�closefd)�r�getfdrrr�get_preparation_data�_name�io�BytesIOrr�dump�os�pipe�get_command_line�extendr�spawnv_passfds�get_executable�pid�sentinel�open�write�	getbuffer�Finalize�	close_fds�	finalizer�close)rrrr�	prep_data�fp�parent_r�child_w�child_r�parent_w�cmd�f�fds_to_closerrrr�_launch&s`�
���
�
���
�
��z
Popen._launch)
rrr�methodr	�DupFdrrrA�
__classcell__rrrrrs)
r&r)�contextrrr"rrr�__all__�objectr	rrrrr�<module>s