summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-09-13 00:44:49 +0200
committerFlorian Westphal <fw@strlen.de>2023-09-14 14:26:44 +0200
commit35d437b7cc19d5126736e4820dcb38cfff051200 (patch)
tree3122895a9a7c1f94365f356941da0533a6a2197d /m4
parent5b7d1fc6a9ad494801d481615a5af73f82753ac1 (diff)
tests/shell: kill running child processes when aborting "run-tests.sh"
When aborting "run-tests.sh", child processes were left running. Kill them. It's surprisingly complicated to get this somewhat right. Do it by enabling monitor mode for each test call, so that they run in separate process groups and we can kill the entire group. Note that we cannot just `kill -- -$$`, because it's not clear who is in this process group. Also, we don't want to kill the `tee` process which handles our logging. Signed-off-by: Thomas Haller <thaller@redhat.com> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions