Viewing File: /opt/alt/python35/lib/python3.5/site-packages/daemon/__pycache__/pidfile.cpython-35.opt-1.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
Back to Directory File Manager