Re: [PATCH net] selftests: net: lib: kill PIDs before del netns
From: Florian Westphal
Date: Tue Aug 13 2024 - 10:08:01 EST
Matthieu Baerts (NGI0) <matttbe@xxxxxxxxxx> wrote:
> 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".
Thanks, this makes sense to me.
Acked-by: Florian Westphal <fw@xxxxxxxxx>