|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /usr/lib64/python2.7/site-packages/psutil/ |
Upload File : |
�
4��\c @ 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 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 PY3( t unicodet
pid_existst wait_pidt
disk_usaget get_terminal_mapc C st | d k r t Sy t j | d � WnE t k
rk } | j t j k rL t S| j t j k rb t S| � n Xt Sd S( s6 Check whether pid exists in the current process table.i N( t Truet ost killt OSErrort errnot ESRCHt Falset EPERM( t pidt err( ( s5 /usr/lib64/python2.7/site-packages/psutil/_psposix.pyR s
c sy � � � � � f d � } t t d t j � � � d k r[ � f d � } � � � � n � f d � } d } xt rty | � \ } } Wn{ t k
r } | j t j k r� | | � } qs qq| j t j k rx/ t r� t � � r� | | � } q� d Sq� Wqq� qs X| d k r(| | � } qs n t j
| � rEt j | � St j | � rat 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_timeoutC 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 waitcallL s c s t j � d � S( Ni ( R
R ( ( R ( s5 /usr/lib64/python2.7/site-packages/psutil/_psposix.pyR"