rust-analyzer/editors/code/src/utils/terminateProcess.sh
2019-04-16 22:07:33 +02:00

12 lines
No EOL
183 B
Bash
Executable file

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