aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Hallyn <serge.hallyn@canonical.com>2012-02-09 10:51:31 -0600
committerDaniel Lezcano <daniel.lezcano@free.fr>2012-02-26 10:44:40 +0100
commita0c4a9fb936f438d1a9fdce0702ca59ad1bb2419 (patch)
tree2fc2921dd93744efe84905d5a887aa2f4c78fbf8
parentfix reboot support detection (diff)
downloadlxc-a0c4a9fb936f438d1a9fdce0702ca59ad1bb2419.tar.gz
lxc-a0c4a9fb936f438d1a9fdce0702ca59ad1bb2419.tar.bz2
lxc-a0c4a9fb936f438d1a9fdce0702ca59ad1bb2419.zip
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>
-rw-r--r--src/lxc/lxc-ls.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lxc/lxc-ls.in b/src/lxc/lxc-ls.in
index 792ea0e..d200509 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