Disable Functions: Path : /usr/lib64/python2.7/site-packages/psutil/ |
Current File : //usr/lib64/python2.7/site-packages/psutil/_psposix.pyo |
� S��]c @ s" d 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 d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d d d g Z d Z d � Z d d d � Z d � Z e d � � Z d S( s% Routines common to all posix systems.i����Ni ( t memoize( t sdiskusage( t usage_percent( t ChildProcessError( t FileNotFoundError( t InterruptedError( t PermissionError( t ProcessLookupError( t PY3( t unicodet pid_existst wait_pidt disk_usaget get_terminal_mapc C sR | d k r t Sy t j | d � Wn# t k r8 t St k rI t SXt Sd S( s6 Check whether pid exists in the current process table.i N( t Truet ost killR t FalseR ( t pid( ( s5 /usr/lib64/python2.7/site-packages/psutil/_psposix.pyR s c sW � � � � � f d � } t t d t j � � � d k r[ � f d � } � � � � n � f d � } d } x� t rRy | � \ } } WnY t k r� | | � } qs t k r� x� t r� t � � r� | | � } q� d Sq� Wqs X| d k r| | � } qs n t j | � r#t j | � St j | � r?t j | � St d | � � qs 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 sW � d k r9 � � � k r9 t � d � d � �� q9 n t j | � t | d d � S( NR t namei g{�G�z�?( t Nonet TimeoutExpiredt timet sleept min( t delay( R t proc_namet stop_att timeoutt timer( s5 /usr/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 ( s5 /usr/lib64/python2.7/site-packages/psutil/_psposix.pyt waitcallI s c s t j � d � S( Ni ( R R ( ( R ( s5 /usr/lib64/python2.7/site-packages/psutil/_psposix.pyR"