mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 03:44:32 +00:00
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:
parent
e2fa152013
commit
a0c4a9fb93
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user