| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | list_descendantsscip-shell shell codec2 1.2.0-5 list_descendants(). () |
| 4 | { |
| 5 | local children=$(psscip-shell system . . ps. -o pid= --ppid "$1") |
| 6 | |
| 7 | for pid in $children |
| 8 | do |
| 9 | list_descendantsscip-shell shell codec2 1.2.0-5 list_descendants(). "$pid" |
| 10 | done |
| 11 | |
| 12 | echoscip-shell system . . echo. $children |
| 13 | } |
| 14 | |
| 15 | killscip-shell system . . kill. $(list_descendantsscip-shell shell codec2 1.2.0-5 list_descendants(). $(pidofscip-shell system . . pidof. -x run_stm32_tst)) |