From ec2de73d3ab9acffcabac973750dd2ae44ee6933 Mon Sep 17 00:00:00 2001 From: PYDT <85057800+87owo@users.noreply.github.com> Date: Sun, 25 Feb 2024 02:34:20 +0800 Subject: [PATCH] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1b2005b..81f4daa 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,8 @@ def proc_detect(): print(f"File: {file}") print(f"Pid: {p.pid}") print(f"Cmd: {cmd}") + elif not psutil.pid_exists(p.pid): + existing_processes.remove(p.pid) except: pass