mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-17 07:31:52 +03:00
11 lines
156 B
Bash
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)
|