[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <163482605999.3319.3686668821047509926@kwain>
Date: Thu, 21 Oct 2021 16:20:59 +0200
From: Antoine Tenart <atenart@...nel.org>
To: Florian Westphal <fw@...len.de>, netdev@...r.kernel.org
Cc: dsahern@...nel.org, Florian Westphal <fw@...len.de>
Subject: Re: [PATCH net] fcnal-test: kill hanging ping/nettest binaries on cleanup
Hi Florian,
Quoting Florian Westphal (2021-10-21 16:02:47)
>
> + ip netns pids ${NSA} | xargs kill 2>/dev/null
> ip netns del ${NSA}
> fi
>
> + ip netns pids ${NSB} | xargs kill 2>/dev/null
> ip netns del ${NSB}
> + ip netns pids ${NSC} | xargs kill 2>/dev/null
> ip netns del ${NSC} >/dev/null 2>&1
Alternatively you can use `xargs -r` (`--no-run-if-empty`) to avoid
redirecting stderr to /dev/null.
Thanks!
Antoine
Powered by blists - more mailing lists