| Server IP : 185.143.233.130 / Your IP : 185.215.232.195 Web Server : LiteSpeed System : Linux jambul.7ho.st 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64 User : renecafe ( 1327) PHP Version : 8.1.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python38/lib64/python3.8/multiprocessing/__pycache__/ |
Upload File : |
U
i�f� � @ s� d dl Z d dlZddlmZmZ ejs.ed��ddlmZ ddlm Z ddlm
Z
ddlmZ d gZG d
d� de
�ZG dd � d e j�ZdS )
� N� )� reduction�set_spawning_popenz,No support for sending fds between processes)�
forkserver)�
popen_fork)�spawn)�util�Popenc @ s e Zd Zdd� Zdd� ZdS )�_DupFdc C s
|| _ d S �N)�ind)�selfr � r �E/opt/alt/python38/lib64/python3.8/multiprocessing/popen_forkserver.py�__init__ s z_DupFd.__init__c C s t �� | j S r )r Zget_inherited_fdsr )r
r r r �detach s z
_DupFd.detachN)�__name__�
__module__�__qualname__r r r r r r r
s r
c sB e Zd ZdZeZ� fdd�Zdd� Zdd� Ze j
fdd �Z� ZS )
r r c s g | _ t� �|� d S r )�_fds�superr )r
�process_obj�� __class__r r r ! s zPopen.__init__c C s | j �|� t| j �d S )Nr )r �append�len)r
�fdr r r �duplicate_for_child% s zPopen.duplicate_for_childc C s� t �|j�}t�� }t| � zt�||� t�||� W 5 td � X t� | j
�\| _}t�
|�}t�| tj|| jf�| _t|ddd��}|�|�� � W 5 Q R X t�| j�| _d S )N�wbT)�closefd)r Zget_preparation_data�_name�io�BytesIOr r �dumpr Zconnect_to_new_processr �sentinel�os�dupr ZFinalizeZ close_fds� finalizer�open�write� getbuffer�read_signed�pid)r
r Z prep_dataZbuf�wZ _parent_w�fr r r �_launch) s
�z
Popen._launchc C sr | j d krlddlm} |tjkr$dnd }|| jg|�s:d S zt�| j�| _ W n tt fk
rj d| _ Y nX | j S )Nr )�wait� )
�
returncodeZmultiprocessing.connectionr0 r% �WNOHANGr$ r r+ �OSError�EOFError)r
�flagr0 Ztimeoutr r r �poll= s
z
Popen.poll)
r r r �methodr
ZDupFdr r r/ r% r3 r7 �
__classcell__r r r r r s )r! r% �contextr r ZHAVE_SEND_HANDLE�ImportError� r r r r �__all__�objectr
r r r r r �<module> s