项目文件夹

文件
2024-09-10 19:37:36 -07:00

12 行
174 B
Bash

#!/bin/bash
terminateTree() {
for cpid in $(/usr/bin/pgrep -P $1); do
terminateTree $cpid
done
kill -9 $1 > /dev/null 2>&1
}
for pid in $*; do
terminateTree $pid
done