dotfiles/private_dot_config/nvim/plugged/coc.nvim/bin/executable_terminateProcess.sh

13 lines
184 B
Bash
Raw Normal View History

2022-01-08 17:30:13 -05:00
#!/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