diff options
author | Matthieu Baerts (NGI0) <[email protected]> | 2024-08-13 15:39:34 +0200 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2024-08-15 12:57:09 +0200 |
commit | 7965a7f32a53d9ad807ce2c53bdda69ba104974f (patch) | |
tree | 7de2ca79e321c42322561948035393f2d94b05f7 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | cdc90f75387c42d64a0ed1ba03550ea9447249d4 (diff) |
selftests: net: lib: kill PIDs before del netns
When deleting netns, it is possible to still have some tasks running,
e.g. background tasks like tcpdump running in the background, not
stopped because the test has been interrupted.
Before deleting the netns, it is then safer to kill all attached PIDs,
if any. That should reduce some noises after the end of some tests, and
help with the debugging of some issues. That's why this modification is
seen as a "fix".
Fixes: 25ae948b4478 ("selftests/net: add lib.sh")
Acked-by: Mat Martineau <[email protected]>
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
Acked-by: Florian Westphal <[email protected]>
Reviewed-by: Hangbin Liu <[email protected]>
Link: https://patch.msgid.link/20240813-upstream-net-20240813-selftests-net-lib-kill-v1-1-27b689b248b8@kernel.org
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions