From a0c4a9fb936f438d1a9fdce0702ca59ad1bb2419 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Thu, 9 Feb 2012 10:51:31 -0600 Subject: [PATCH] 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 Signed-off-by: Daniel Lezcano --- src/lxc/lxc-ls.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/lxc-ls.in b/src/lxc/lxc-ls.in index 792ea0efe..d200509d0 100644 --- a/src/lxc/lxc-ls.in +++ b/src/lxc/lxc-ls.in @@ -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