관리-도구
편집 파일: _psposix.cpython-38.pyc
U �Mg+ � @ st d Z ddlZddlZddlZddlZddlZddlmZ ddlmZ ddlm Z ddlm Z ddlmZ dd lm Z dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ er�ddlmZ e r�ddlZndZddddgZdd� Zedk �r.eed��r.e�dedd� ejD ���Zdd� Zndd� Zddeje edej�e!ej"efdd�Z#dd� Z$e d d� �Z%dS )!z%Routines common to all posix systems.� N� )�MACOS��TimeoutExpired)�memoize)� sdiskusage)� usage_percent)�PY3)�ChildProcessError)�FileNotFoundError)�InterruptedError)�PermissionError)�ProcessLookupError)�unicode)�_psutil_osx� pid_exists�wait_pid� disk_usage�get_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)�os�killr r )�pid� r �?/opt/hc_python/lib64/python3.8/site-packages/psutil/_psposix.pyr ( s �Signals� Negsignalc C s g | ]}|j |j f�qS r )�name�value)�.0�xr r r � <listcomp>B s r c C s( z t | �W S tk r" | Y S X dS )z+Convert a negative signal value to an enum.N)r � ValueError��numr r r �negsig_to_enumE s r$ c C s | S )Nr r"