Debian Codegraph @

stm32/unittest/scripts/kill_run_stm32_tst

raw symbols SCIP
1 #!/bin/bash
2
3 list_descendants ()
4 {
5 local children=$(ps -o pid= --ppid "$1")
6
7 for pid in $children
8 do
9 list_descendants "$pid"
10 done
11
12 echo $children
13 }
14
15 kill $(list_descendants $(pidof -x run_stm32_tst))