Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
usr
/
share
/
rhsm
/
subscription_manager
/
Upload File :
New :
File
Dir
//proc/self/root/usr/share/rhsm/subscription_manager/lock.pyo
mò x^Sc @ sR d k Z d k Z d k l Z d k Z d f d „ ƒ YZ d f d „ ƒ YZ d S( N( s RLockt LockFilec B sb t Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( Nc C s | | _ d | _ d | _ d S( N( t patht selft Nonet pidt fp( R R ( ( t, /usr/share/rhsm/subscription_manager/lock.pyt __init__ s c C su | i ƒ o- t | i d ƒ | _ | i ƒ | i ƒ n t | i d ƒ | _ | i i ƒ } t i | t i ƒ d S( Nt ws r+( R t notcreatedt openR R t setpidt closet filenot fdt fcntlt flockt LOCK_EX( R R ( ( R R s c C sJ | i d j o3 | i i ƒ i ƒ } | o t | ƒ | _ qC n | i S( N( R R R R t readt stript contentt int( R R ( ( R t getpid( s c C sC | i i d ƒ t t i ƒ ƒ } | i i | ƒ | i i ƒ d S( Ni ( R R t seekt strt osR R t writet flush( R R ( ( R R / s c C s t i ƒ | i ƒ j S( N( R R R ( R ( ( R t mypid5 s c C s@ t } y t i | i ƒ d ƒ t } Wn t j o n X| S( Ni ( t Falset statusR t killR R t Truet Exception( R R ( ( R t valid8 s c C s= | i ƒ p | i ƒ o | i ƒ t i | i ƒ n d S( N( R R R"