/opt/alt/python27/lib64/python2.7/site-packages/psutil
Edit: /opt/alt/python27/lib64/python2.7/site-packages/psutil/_psposix.pyc (3859B)
ó
éíòRc @ s« d Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m
Z
m Z m 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 s] | d k r t Sy t j | d ƒ Wn. t k
rT t j ƒ d } | j t j k 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( ( sB /opt/alt/python27/lib64/python2.7/site-packages/psutil/_psposix.pyt
pid_exists s
c ss ‡ ‡ ‡ ‡ f d † } t t d t j ƒ ‰ ˆ d k rX ‡ f d † } ˆ ƒ ˆ ‰ n ‡ f d † } d } xÿ y | ƒ \ } } Wnƒ t k
rt j ƒ d } | j t j k rÇ | | ƒ } qp qk| j t j k rx) t ˆ ƒ r÷ | | ƒ } qÜ d SqÜ Wqk‚ qp X| d k r'| | ƒ } qp n t
j | ƒ rCt
j | ƒ St
j
| ƒ r_t
j | ƒ St d ƒ ‚ qp Wd 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 sK ˆ d k r- ˆ ƒ ˆ k r- t ˆ ƒ ‚ q- n t j | ƒ t | d d ƒ S( Ni g{®Gáz¤?( t NoneR t timet sleept min( t delay( R
t stop_att timeoutt timer( sB /opt/alt/python27/lib64/python2.7/site-packages/psutil/_psposix.pyt
check_timeout* s
t monotonicc s t j ˆ t j ƒ S( N( R t waitpidt WNOHANG( ( R
( sB /opt/alt/python27/lib64/python2.7/site-packages/psutil/_psposix.pyt
3 s c s t j ˆ d ƒ S( Ni ( R R ( ( R
( sB /opt/alt/python27/lib64/python2.7/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 sB /opt/alt/python27/lib64/python2.7/site-packages/psutil/_psposix.pyt wait_pid s:
c C sn t j | ƒ } | j | j } | j | j } | j | j | j } 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( ( sB /opt/alt/python27/lib64/python2.7/site-packages/psutil/_psposix.pyt get_disk_usage` s c C sŸ i } t j d ƒ t j d ƒ } xv | D]n } | | k sA t ‚ y | | t j | ƒ j