lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<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

Powered by Openwall GNU/*/Linux Powered by OpenVZ