File: //proc/thread-self/root/lib/python3/dist-packages/twisted/runner/__pycache__/procmon.cpython-38.pyc
U
W[�1 � @ s� d Z ddlZddlZddlmZmZ ddlmZmZm Z
ddlmZ ddl
mZ ejdd�G d d
� d
e��ZG dd� d�Ze� ZG d
d� dej�ZG dd� dej�ZG dd� dej�ZdS )zA
Support for starting, monitoring, and restarting child process.
� N)�log� deprecate)�error�protocol�reactor)�service)�basicT)�frozenc @ sl e Zd ZdZe�� Zejdd�Zejdd�Zeje� e
�d�Zejdd�Ze
�e�dddd��dd � �ZdS )
�_Processa"
The parameters of a process to be restarted.
@ivar args: command-line arguments (including name of command as first one)
@type args: C{list}
@ivar uid: user-id to run process as, or None (which means inherit uid)
@type uid: C{int}
@ivar gid: group-id to run process as, or None (which means inherit gid)
@type gid: C{int}
@ivar env: environment for process
@type env: C{dict}
@ivar cwd: initial working directory for process or None
(which means inherit cwd)
@type cwd: C{str}
N)�default�Twisted� � r c C s | j | j| j| jfS )a�
Convert process to tuple.
Convert process to tuple that looks like the legacy structure
of processes, for potential users who inspected processes
directly.
This was only an accidental feature, and will be removed. If
you need to remember what processes were added to a process monitor,
keep track of that when they are added. The process list
inside the process monitor is no longer a public API.
This allows changing the internal structure of the process list,
when warranted by bug fixes or additional features.
@return: tuple representation of process
)�args�uid�gid�env��self� r �8/usr/lib/python3/dist-packages/twisted/runner/procmon.py�toTuple, s z_Process.toTuple)�__name__�
__module__�__qualname__�__doc__�attrZibr r r ZFactory�dictr �cwdr �
deprecated�incremental�Versionr r r r r r
s r
c @ s e Zd ZdZdS )�DummyTransportr N)r r r Z
disconnectingr r r r r"