silence netstat warnings in lxc-ls

netstat -x sometimes spits errors to stderr like:
	warning, got bogus unix line.
Shut those up as they don't help lxc-ls.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
Serge Hallyn 2012-02-09 10:51:31 -06:00 committed by Daniel Lezcano
parent e2fa152013
commit a0c4a9fb93

View File

@ -25,7 +25,7 @@ function get_cgroup()
ls "$@" $lxcpath
active=$(netstat -xl | grep $lxcpath | \
active=$(netstat -xl 2>/dev/null | grep $lxcpath | \
sed -e 's#.*'"$lxcpath/"'\(.*\)/command#\1#');
if test -n "$active"; then