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

13 lines
167 B
Bash
Raw Normal View History

#!/usr/bin/env sh
getcpid() {
cpids=$(pgrep -P $1|xargs)
for cpid in $cpids;
do
echo "$cpid"
getcpid $cpid
done
}
kill $(getcpid $1)