pentest-distro-builder/filesystem/etc/skel/.vscode/extensions/ms-vscode.go-0.6.89/scripts/terminateProcess.sh

12 lines
175 B
Bash
Executable file

#!/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