☰
Debian Codegraph
@
1.2.0-5
/
/
stm32
/
unittest
/
scripts
/
kill_run_stm32_tst
☽
☼
stm32/unittest/scripts/kill_run_stm32_tst
code
plain
raw
symbols
SCIP
LGPL-2.1
Copyright 2007-2023 David Rowe
debian/copyright
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))