Uname : Linux serv1.rebootns.com 5.14.0-570.62.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 10:10:59 EST 2025 x86_64
Soft : LiteSpeed
Ip : 139.99.125.122
Port : 443
~
/
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
daemon
/
__pycache__
[ HOME ]
Exec
Submit
pidfile.cpython-311.pyc
� ���$to�� �D � d Z ddlmZmZ ddlmZ G d� dee� � ZdS )z8 Lockfile behaviour implemented via Unix PID files. � )�absolute_import�unicode_literals)�PIDLockFilec �0 � � e Zd ZdZd� fd� Zd� fd� Z� xZS )�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 �P �� || _ 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__s ��n/builddir/build/BUILD/imunify360-venv-2.6.0/opt/imunify360/venv/lib/python3.11/site-packages/daemon/pidfile.pyr zTimeoutPIDLockFile.__init__ s: �� � /���������/��/�/�/��/�/�/�/�/� c �T �� |�| 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 �timeoutr r r s �r r zTimeoutPIDLockFile.acquire* s>