tauri/tooling/cli/scripts/kill-children.sh

11 lines
156 B
Bash

function getcpid() {
cpids=`pgrep -P $1|xargs`
for cpid in $cpids;
do
echo "$cpid"
getcpid $cpid
done
}
kill $(getcpid $1)