https://t.me/AnonymousX5
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/site-packages/psutil/_psposix.pyc
�
4��\c@s�dZddlZddlZddlZddlZddlZddlmZddlmZddlm	Z	ddl
mZddl
mZd	d
ddgZ
dZd
�Zddd�Zd�Zed��ZdS(s%Routines common to all posix systems.i����Ni(tmemoize(t
sdiskusage(t
usage_percent(tPY3(tunicodet
pid_existstwait_pidt
disk_usagetget_terminal_mapcCst|dkrtSytj|d�WnEtk
rk}|jtjkrLtS|jtjkrbtS|�nXtSdS(s6Check whether pid exists in the current process table.iN(tTruetostkilltOSErrorterrnotESRCHtFalsetEPERM(tpidterr((s5/usr/lib64/python2.7/site-packages/psutil/_psposix.pyRs
c	sy�����fd�}ttdtj���dk	r[�fd�}����n�fd�}d}xtrty|�\}}Wn{tk
r	}|jtjkr�||�}qsqq|jtjkrx/tr�t��r�||�}q�dSq�Wqq�qsX|dkr(||�}qsnt	j
|�rEt	j|�St	j|�rat	j
|�Std|��qsWdS(	sIWait 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.
    csW�dk	r9���kr9t�d�d���q9ntj|�t|dd�S(NRtnameig{�G�z�?(tNonetTimeoutExpiredttimetsleeptmin(tdelay(Rt	proc_nametstop_atttimeoutttimer(s5/usr/lib64/python2.7/site-packages/psutil/_psposix.pyt
check_timeoutCs

t	monotoniccstj�tj�S(N(R
twaitpidtWNOHANG((R(s5/usr/lib64/python2.7/site-packages/psutil/_psposix.pytwaitcallLscstj�d�S(Ni(R
R ((R(s5/usr/lib64/python2.7/site-packages/psutil/_psposix.pyR"Psg-C��6?Nisunknown process exit status %r(tgetattrRRR	RR
tEINTRtECHILDRR
tWIFSIGNALEDtWTERMSIGt	WIFEXITEDtWEXITSTATUSt
ValueError(	RRRRR"RtretpidtstatusR((RRRRRs5/usr/lib64/python2.7/site-packages/psutil/_psposix.pyR8s8		
c	Cstrtj|�}nxytj|�}Wnbtk
r�t|t�r�y|jtj��}Wntk
rvnXtj|�}q��nX|j	|j
}|j|j
}|j|j
}||}||}t
||dd�}td|d|d|d|�S(s.Return disk usage associated with path.
    Note: UNIX usually reserves 5% disk space which is not accessible
    by user. In this function "total" and "used" values reflect the
    total and used disk space whereas "free" and "percent" represent
    the "free" and "used percent" user disk space.
    tround_ittotaltusedtfreetpercent(RR
tstatvfstUnicodeEncodeErrort
isinstanceRtencodetsystgetfilesystemencodingtf_blockstf_frsizetf_bfreetf_bavailRR(tpathtstR.t
avail_to_roott
avail_to_userR/t
total_usertusage_percent_user((s5/usr/lib64/python2.7/site-packages/psutil/_psposix.pyR{s(



cCs�i}tjd�tjd�}xn|D]f}||ksGt|��y||tj|�j<Wq)tk
r�}|jtjkr��q�q)Xq)W|S(sMGet a map of device-id -> path as a dict.
    Used by Process.terminal()
    s	/dev/tty*s
/dev/pts/*(tglobtAssertionErrorR
tstattst_rdevRR
tENOENT(trettlsRR((s5/usr/lib64/python2.7/site-packages/psutil/_psposix.pyR�s
(t__doc__R
RBR
R6Rt_commonRRRt_compatRRt__all__RRRRRR(((s5/usr/lib64/python2.7/site-packages/psutil/_psposix.pyt<module>s 	C	1

https://t.me/AnonymousX5 - 2025