403Webshell
Server IP : 157.22.201.140  /  Your IP : 216.73.216.74
Web Server : nginx/1.30.1
System : Linux mit.vincode.fvds.ru 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/lockfile/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/lockfile/__pycache__/linklockfile.cpython-312.pyc
�

��UV\
��V�ddlmZddlZddlZddlmZmZmZmZm	Z	m
Z
Gd�de�Zy)�)�absolute_importN�)�LockBase�
LockFailed�	NotLocked�	NotMyLock�LockTimeout�
AlreadyLockedc�0�eZdZdZdd�Zd�Zd�Zd�Zd�Zy)	�LinkLockFilez�Lock access to a file using atomic property of link(2).

    >>> lock = LinkLockFile('somefile')
    >>> lock = LinkLockFile('somefile', threaded=False)
    Nc���	t|jd�j�|�|n|j
}t
j�}|�
|dkDr||z
}		tj|j|j�y#t$rt	d|jz��wxYw#t$r�tj|j�j}|dk(rYy|�kt
j�|kDrTtj|j�|dkDrtd|jz��t!d|jz��t
j"|duxr|dzxsd�YnwxYw��!)	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)�selfr�end_time�nlinkss    �7/usr/lib/python3/dist-packages/lockfile/linklockfile.py�acquirezLinkLockFile.acquiresj��	G���!�!�4�(�.�.�0�%�0�'�d�l�l���9�9�;����7�Q�;����H��
�����(�(�$�.�.�9�,��C�	G��2�T�5E�5E�E�F�F�	G���
L�����!1�!1�2�;�;���Q�;���*�t�y�y�{�X�/E��	�	�$�"2�"2�3�"�Q�;�"-�/=�.2�i�i�/8�#9�9�#0�0F�04�	�	�1:�#;�;��J�J�w�d�2�C�w��|�J�s�K�%
L��	s$�$B�*B(�"B%�(7E3�!BE3�2E3c�R�|j�std|jz��tjj	|j
�st
d|jz��tj|j
�tj|j�y)Nz%s is not lockedz%s is locked, but not by me)	�	is_lockedrrr�existsrrrr�r s r#�releasezLinkLockFile.release7sn���~�~���.����:�;�;������� 0� 0�1��9�D�I�I�E�F�F�
�	�	�$�"�"�#�
�	�	�$�.�.�!�c�T�tjj|j�S�N)rrr'rr(s r#r&zLinkLockFile.is_locked?s���w�w�~�~�d�n�n�-�-r*c���|j�xrWtjj|j�xr,tj
|j�jdk(S)Nr)r&rrr'rrrr(s r#�i_am_lockingzLinkLockFile.i_am_lockingBsN����� �8������t�/�/�0�8�����(�(�)�2�2�a�7�	9r*c��tjj|j�r tj|j�yyr,)rrr'rrr(s r#�
break_lockzLinkLockFile.break_lockGs+��
�7�7�>�>�$�.�.�)��I�I�d�n�n�%�*r*r,)	�__name__�
__module__�__qualname__�__doc__r$r)r&r.r0�r*r#rr
s!���$�L"�.�9�
&r*r)�
__future__rrr�rrrrr	r
rr5r*r#�<module>r8s$��&��	���?&�8�?&r*

Youez - 2016 - github.com/yon3zu
LinuXploit