freedv-gui/codec2-1.2.0/stm32/unittest/scripts/kill_run_stm32_tst

16 lines
214 B
Bash
Executable File

#!/bin/bash
list_descendants ()
{
local children=$(ps -o pid= --ppid "$1")
for pid in $children
do
list_descendants "$pid"
done
echo $children
}
kill $(list_descendants $(pidof -x run_stm32_tst))