$toDdZddlmZmZddlmZGddeeZdS)z8 Lockfile behaviour implemented via Unix PID files. )absolute_importunicode_literals) PIDLockFilec0eZdZdZdfd Zdfd ZxZS)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. NcP||_tj|g|Ri|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_timeoutsuper__init__)selfpathr argskwargs __class__s /srv/buildsys-work-dir/castor/build_node/builder-1/MVYGK/unpkd_srcs/imunify360-venv-2.6.0/opt/imunify360/venv/lib/python3.11/site-packages/daemon/pidfile.pyr zTimeoutPIDLockFile.__init__s: //////////cT||j}tj|g|Ri|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 timeoutrrrs rrzTimeoutPIDLockFile.acquire*s> ?*G1$111&11111r)N)__name__ __module__ __qualname____doc__r r __classcell__)rs@rrrse    0 0 0 0 0 02222222222rrN)r __future__rrlockfile.pidlockfilerobjectrrrrsq;:::::::,,,,,,'2'2'2'2'2f'2'2'2'2'2r