관리-도구
편집 파일: _psposix.cpython-311.pyc
� �܋f5 � �� � d Z ddlZddlZddlZddlZddlZddlmZ ddlmZ ddlm Z ddlm Z ddlmZ dd lm Z dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ erddlmZ ej dk rddlZndZg d�Zd� Ze�9 eed� � r- ej d ed� ej D � � � � � � Zd� Znd� Zddej e!edej � � e"ej# efd�Z$d� Z%e 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 �| � | dk rdS t j | d� � dS # t $ r Y dS t $ r Y dS w xY w)z6Check whether pid exists in the current process table.r TF)�os�killr r )�pids �F/opt/cloudlinux/venv/lib64/python3.11/site-packages/psutil/_psposix.pyr r ( sj � � �a�x�x� �t� � ���Q���� �t�� � � � ��u�u�� � � ��t�t����s �! � ;� ;�;�Signals� Negsignalc �, � g | ]}|j |j f��S � )�name�value)�.0�xs r � <listcomp>r% B s# � �F�F�F�!�A�F�Q�W�H�-�F�F�F� c �F � t | � � S # t $ r | cY S w xY w)z+Convert a negative signal value to an enum.)r � ValueError��nums r �negsig_to_enumr+ D s7 � � ��S�>�>�!��� � � ��J�J�J� ���s � � � c � � | S )Nr r) s r r+ r+ K s � �� r&