| Server IP : 156.238.232.47 / Your IP : 216.73.216.150 Web Server : nginx/1.25.3 System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : www ( 1000) PHP Version : 8.3.25 Disable Function : 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 MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib64/python3.6/multiprocessing/__pycache__/ |
Upload File : |
3 \� � @ s� d dl Z d dlZd dlZd dlZd dlZddlmZmZmZ ddl m Z ddl mZ dgZdZ ejdkoreed d �Zejj� jd�ZG dd� de�ZdS ) � N� )� reduction�get_spawning_popen�set_spawning_popen)�spawn)�util�Popeni Zwin32�frozenFzpythonservice.exec @ s: e Zd ZdZdd� Zdd� Zd dd�Zd d � Zdd� ZdS )r r c C s t j|j�}tjd d�\}}tj|d�}t jtj � |d�}dj dd� |D ��}t|ddd���}y4tjt j � |d d d dd d d � \}} } }tj| � W n tj|� � Y nX | | _d | _|| _t|�| _tj| tj| jf� t| � ztj||� tj||� W d td � X W d Q R X d S ) Nr )Z parent_pidZpipe_handle� c s s | ]}d | V qdS )z"%s"N� )�.0�xr r �9/usr/lib64/python3.6/multiprocessing/popen_spawn_win32.py� <genexpr>) s z!Popen.__init__.<locals>.<genexpr>�wbT)�closefdF)r Zget_preparation_data�_name�_winapiZ CreatePipe�msvcrtZopen_osfhandleZget_command_line�os�getpid�join�openZ CreateProcessZget_executableZCloseHandle�pid� returncode�_handle�int�sentinelr ZFinalizer r �dump)�selfZprocess_objZ prep_dataZrhandleZwhandleZwfd�cmdZto_childZhpZhtr �tidr r r �__init__ s2 zPopen.__init__c C s t j|| j�S )N)r Z duplicater )r Zhandler r r �duplicate_for_childE s zPopen.duplicate_for_childNc C st | j d krn|d krtj}ntdt|d d ��}tjt| j�|�}|tjkrntj| j�}|t krht j }|| _ | j S )Nr i� g �?)r r ZINFINITE�maxr ZWaitForSingleObjectr Z WAIT_OBJECT_0ZGetExitCodeProcess� TERMINATE�signal�SIGTERM)r �timeoutZmsecs�res�coder r r �waitI s z Popen.waitc C s | j dd�S )Nr )r( )r+ )r r r r �pollY s z Popen.pollc C sL | j d krHytjt| j�t� W n& tk rF | jdd�d krB� Y nX d S )Ng �?)r( )r r ZTerminateProcessr r r% �OSErrorr+ )r r r r � terminate\ s zPopen.terminate)N) �__name__� __module__�__qualname__�methodr"