1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 01:40:05 +08:00
SpaceVim/bundle/coc.nvim-release/bin/terminateProcess.sh
2023-03-30 10:48:58 +08:00

13 lines
184 B
Bash

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