Viewing File: /opt/alt/python38/lib64/python3.8/site-packages/psutil/__pycache__/_psposix.cpython-38.pyc
U
_m @ s^ d Z ddlZddlZddlZddlZddlZddlmZ ddlmZ ddlm Z ddlm
Z
ddlmZ dd lm
Z
dd
lmZ ddlmZ ddlmZ dd
lmZ ddlmZ ejdkrddlZndZddddgZdd Zedk reedrededd ejD Zdd Zndd Zddejeedejeej efddZ!dd Z"edd Z#dS ) z%Routines common to all posix systems. N )memoize)
sdiskusageTimeoutExpired)
usage_percent)ChildProcessError)FileNotFoundError)InterruptedError)PermissionError)ProcessLookupError)PY3)unicode)
pid_existswait_pid
disk_usageget_terminal_mapc C sP | dkrdS zt | d W n* tk
r2 Y dS tk
rF Y dS X dS dS )z6Check whether pid exists in the current process table.r TFN)oskillr r )pid r B/opt/alt/python38/lib64/python3.8/site-packages/psutil/_psposix.pyr "