| Server IP : 3.96.16.70 / Your IP : 216.73.216.15 Web Server : Apache System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3.9/site-packages/daemon/__pycache__/ |
Upload File : |
a
{�1`� � @ s6 d Z ddlmZmZ ddlmZ G dd� dee�ZdS )z8 Lockfile behaviour implemented via Unix PID files.
� )�absolute_import�unicode_literals)�PIDLockFilec s0 e Zd ZdZd� fdd� Zd� fdd� Z� ZS ) �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|g|�R i |�� 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�super�__init__)�self�pathr �args�kwargs�� __class__� �2/usr/lib/python3.9/site-packages/daemon/pidfile.pyr s zTimeoutPIDLockFile.__init__c s, |du r| j }t� j|g|�R i |�� 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)r r �acquire)r Ztimeoutr r r
r r r * s
zTimeoutPIDLockFile.acquire)N)N)�__name__�
__module__�__qualname__�__doc__r r �
__classcell__r r r
r r s r N)r Z
__future__r r Zlockfile.pidlockfiler �objectr r r r r �<module>
s