This commit is contained in:
josc146
2023-05-07 22:48:52 +08:00
parent d46a18425b
commit 9763de8f64
7 changed files with 131 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ def read_root():
@app.post("/exit")
def read_root():
def exit():
parent_pid = os.getpid()
parent = psutil.Process(parent_pid)
for child in parent.children(recursive=True):