Files
dotfiles/.vscode/extensions/ms-vscode-remote.remote-ssh-0.122.0/out/utils/terminateProcess.sh
2025-12-15 12:50:23 -05:00

13 lines
202 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
}
# shellcheck disable=SC2048
for pid in $*; do
terminateTree $pid
done