MOON
Server: Apache
System: Linux server30c.hostingraja.org 3.10.0-962.3.2.lve1.5.63.el7.x86_64 #1 SMP Fri Oct 8 12:03:35 UTC 2021 x86_64
User: jibhires (1887)
PHP: 8.1.30
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, symlink, escapeshellcmd, pcntl_exec
Upload Files
File: //opt/alt/python35/lib/python3.5/site-packages/daemon/__pycache__/pidfile.cpython-35.pyc


^�V[�@sIdZddlmZmZddlmZGdd�dee�ZdS)z8 Lockfile behaviour implemented via Unix PID files.
    �)�absolute_import�unicode_literals)�PIDLockFilecs@eZdZdZd�fdd�Zd�fdd�Z�S)�TimeoutPIDLockFilea@ Lockfile with default timeout, implemented as a Unix PID file.

        This uses the ``PIDLockFile`` implementation, with the
        following changes:

        * The `acquire_timeout` parameter to the initialiser will be
          used as the default `timeout` parameter for the `acquire`
          method.

        Ncs)||_tt|�j|||�dS)z� Set up the parameters of a TimeoutPIDLockFile.

            :param path: Filesystem path to the PID file.
            :param acquire_timeout: Value to use by default for the
                `acquire` call.
            :return: ``None``.

            N)�acquire_timeout�superr�__init__)�self�pathr�args�kwargs)�	__class__��/pidfile.pyr!s		zTimeoutPIDLockFile.__init__cs5|dkr|j}tt|�j|||�dS)ax Acquire the lock.

            :param timeout: Specifies the timeout; see below for valid
                values.
            :return: ``None``.

            The `timeout` defaults to the value set during
            initialisation with the `acquire_timeout` parameter. It is
            passed to `PIDLockFile.acquire`; see that method for
            details.

            N)rrr�acquire)r	�timeoutrr)r
rrr-s
	zTimeoutPIDLockFile.acquire)�__name__�
__module__�__qualname__�__doc__rrrr)r
rrs
rN)rZ
__future__rrZlockfile.pidlockfiler�objectrrrrr�<module>s