MCPcopy Index your code
hub / github.com/ModelTC/LightLLM / is_process_active

Function is_process_active

lightllm/utils/process_check.py:11–16  ·  view source on GitHub ↗
(pid)

Source from the content-addressed store, hash-verified

9
10
11def is_process_active(pid):
12 try:
13 process = psutil.Process(pid)
14 return process.is_running() and process.status() != psutil.STATUS_ZOMBIE
15 except psutil.NoSuchProcess:
16 return False
17
18
19def kill_child_processes(parent_pid):

Callers 2

signal_handlerFunction · 0.90
check_parent_aliveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected