
Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­
<!DOCTYPE html>
<html>
U
    {ó1`î  ã                   @   s6   d Z ddlmZmZ ddlmZ G dd„ deeƒZdS )z8 Lockfile behaviour implemented via Unix PID files.
    é    )Úabsolute_importÚunicode_literals)ÚPIDLockFilec                       s0   e Zd ZdZd‡ fdd„	Zd‡ fdd„	Z‡  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.

        Nc                    s   || _ tƒ j|f|ž|Ž dS )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ÚsuperÚ__init__)ÚselfÚpathr   ÚargsÚkwargs©Ú	__class__© ú?/opt/alt/python38/lib/python3.8/site-packages/daemon/pidfile.pyr      s    	zTimeoutPIDLockFile.__init__c                    s&   |dkr| j }tƒ j|f|ž|Ž dS )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)r   r   Úacquire)r	   Útimeoutr   r   r   r   r   r   *   s    zTimeoutPIDLockFile.acquire)N)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ú__classcell__r   r   r   r   r      s   r   N)r   Ú
__future__r   r   Zlockfile.pidlockfiler   Úobjectr   r   r   r   r   Ú<module>
   s   