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: //usr/lib/python3/dist-packages/twisted/scripts/__pycache__/_twistw.cpython-38.pyc
U


W[�@spddlmZddlmZddlmZmZmZddlm	Z	ddl
Z
ddlZGdd�dej�ZGdd	�d	ej
�ZdS)
�)�print_function)�log)�app�service�internet)�	copyrightNc@s$eZdZdZdddggZdd�ZdS)�
ServerOptionszUsage: twistd [options]Znodaemon�nz(for backwards compatibility).cCs2td�tj�|jd�ttj|jd�t��dS)z5
        Print version information and exit.
        z&twistd (the Twisted Windows runner) {})�fileN)�print�formatr�version�stdout�sys�exit��self�r�9/usr/lib/python3/dist-packages/twisted/scripts/_twistw.py�opt_versions
�zServerOptions.opt_versionN)�__name__�
__module__�__qualname__ZsynopsisZoptFlagsrrrrrrsrc@s eZdZdZdd�Zdd�ZdS)�WindowsApplicationRunnerzn
    An ApplicationRunner which avoids unix-specific things. No
    forking, no PID files, no privileges.
    cCs$tj|_tj|_t�|jd�dS)z4
        Do pre-application-creation setup.
        ZrundirN)rr�	oldstdout�stderr�	oldstderr�os�chdir�configrrrr�preApplication%sz'WindowsApplicationRunner.preApplicationcCs^t�|j���t�|j|jd�t�t�ddd��d�|�	d|j
|j�t�
d�dS)z<
        Start the application and run the reactor.
        Zno_saveg�������?cSsdS)Nrrrrr�<lambda>4�z:WindowsApplicationRunner.postApplication.<locals>.<lambda>rNzServer Shut Down.)rZIServiceZapplicationZprivilegedStartServicerZstartApplicationrrZTimerServiceZstartReactorrrr�msgrrrr�postApplication.s
z(WindowsApplicationRunner.postApplicationN)rrr�__doc__r r$rrrrrs	r)Z
__future__rZtwisted.pythonrZtwisted.applicationrrrZtwistedrrrrZApplicationRunnerrrrrr�<module>s