HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/twisted/internet/__pycache__/_baseprocess.cpython-38.pyc
U

��W[y�@sLdZddlmZddlmZddlmZddlmZdZ	Gdd�de
�Zd	S)
zd
Cross-platform process-related functionality used by different
L{IReactorProcess} implementations.
�)�qual)�getWarningMethod)�Failure)�errzUSince Twisted 8.2, IProcessProtocol.processExited is required.  %s must implement it.c@s<eZdZdZdZdZdZdd�Zdd�Zdd�Z	d	d
�Z
dS)�BaseProcessNrcCs
||_dS)N)�proto)�selfZprotocol�r	�?/usr/lib/python3/dist-packages/twisted/internet/_baseprocess.py�__init__szBaseProcess.__init__cCsht�}t|jd|�}||kr<t�tt|jj�ftdd�n(z|t|��Wnt	dd�YnXdS)N�
processExitedr)�
stacklevelz!unexpected error in processExited)
�object�getattrrr�_missingProcessExitedr�	__class__�DeprecationWarningrr)r�reason�defaultrr	r	r
�_callProcessExiteds�zBaseProcess._callProcessExitedcCs6||_|jd7_d|_|�|�|��|��dS)z;
        This is called when the child terminates.
        �N)�status�lostProcess�pidr�
_getReason�maybeCallProcessEnded)rrr	r	r
�processEnded,s
zBaseProcess.processEndedcCsP|jdk	rL|�|j�}|j}d|_z|�t|��Wntdd�YnXdS)zD
        Call processEnded on protocol after final cleanup.
        Nz unexpected error in processEnded)rrrrrr)rrrr	r	r
r7s
z!BaseProcess.maybeCallProcessEnded)�__name__�
__module__�__qualname__rrrrrrrrr	r	r	r
rsrN)�__doc__Ztwisted.python.reflectrZtwisted.python.deprecaterZtwisted.python.failurerZtwisted.python.logrrrrr	r	r	r
�<module>s