/usr/lib64/python2.6/site-packages/psutil
Edit: /usr/lib64/python2.6/site-packages/psutil/_psposix.pyo (3742B)
Ñò
éíòRc
@ s« d Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k l Z d d k l
Z
l Z l Z d „ Z
d d „ Z d „ Z e d „ ƒ Z d S( s% Routines common to all posix systems.iÿÿÿÿN( t TimeoutExpired( t nt_diskinfot
usage_percentt memoizec C sa | d j o t Sy t i | d ƒ Wn0 t j
o$ t i ƒ d } | i t i j SXt Sd S( s6 Check whether pid exists in the current process table.i i N( t Falset ost killt OSErrort syst exc_infot errnot EPERMt True( t pidt e( ( s5 /usr/lib64/python2.6/site-packages/psutil/_psposix.pyt
pid_exists s
c s ‡ ‡ ‡ ‡ f d † } t t d t i ƒ ‰ ˆ d j o ‡ f d † } ˆ ƒ ˆ ‰ n ‡ f d † } d } xy | ƒ \ } } WnŠ t j
o~ t i ƒ d } | i t i j o | | ƒ } qr qz| i t i j o+ x+ t ˆ ƒ o | | ƒ } qâ d Sqâ qz‚ qr X| d j o | | ƒ } qr n t
i | ƒ o t
i | ƒ St
i
| ƒ o t
i | ƒ St d ƒ ‚ qr d S(
sI Wait for process with pid 'pid' to terminate and return its
exit status code as an integer.
If pid is not a children of os.getpid() (current process) just
waits until the process disappears and return None.
If pid does not exist at all return None immediately.
Raise TimeoutExpired on timeout expired.
c sO ˆ d j o$ ˆ ƒ ˆ j o t ˆ ƒ ‚ q1 n t i | ƒ t | d d ƒ S( Ni g{®Gáz¤?( t NoneR t timet sleept min( t delay( R
t timert stop_att timeout( s5 /usr/lib64/python2.6/site-packages/psutil/_psposix.pyt
check_timeout* s
t monotonicc s t i ˆ t i ƒ S( ( R t waitpidt WNOHANG( ( R
( s5 /usr/lib64/python2.6/site-packages/psutil/_psposix.pyt
3 s c s t i ˆ d ƒ S( i ( R R ( ( R
( s5 /usr/lib64/python2.6/site-packages/psutil/_psposix.pyR 6 s g-Cëâ6?i Ni s unknown process exit status( t getattrR R R R R R
t EINTRt ECHILDR R t WIFSIGNALEDt WTERMSIGt WIFEXITEDt WEXITSTATUSt RuntimeError( R
R R t waitcallR t retpidt statust err( ( R
R R R s5 /usr/lib64/python2.6/site-packages/psutil/_psposix.pyt wait_pid s:
c C sn t i | ƒ } | i | i } | i | i } | i | i | i } t | | d d ƒ} t | | | | ƒ S( s' Return disk usage associated with path.t _roundi ( R t statvfst f_bavailt f_frsizet f_blockst f_bfreeR R ( t patht stt freet totalt usedt percent( ( s5 /usr/lib64/python2.6/site-packages/psutil/_psposix.pyt get_disk_usage` s c C s‘ h } t i d ƒ t i d ƒ } xh | D]` } y | | t i | ƒ i