Commit a0c4a9fb by Serge Hallyn Committed by Daniel Lezcano

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: 's avatarSerge Hallyn <serge.hallyn@canonical.com> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent e2fa1520
...@@ -25,7 +25,7 @@ function get_cgroup() ...@@ -25,7 +25,7 @@ function get_cgroup()
ls "$@" $lxcpath ls "$@" $lxcpath
active=$(netstat -xl | grep $lxcpath | \ active=$(netstat -xl 2>/dev/null | grep $lxcpath | \
sed -e 's#.*'"$lxcpath/"'\(.*\)/command#\1#'); sed -e 's#.*'"$lxcpath/"'\(.*\)/command#\1#');
if test -n "$active"; then if test -n "$active"; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment