tools/kvm_stat: fix updates for dead guests
authorStefan Raspl <stefan.raspl@de.ibm.com>
Fri, 24 Aug 2018 12:03:57 +0000 (14:03 +0200)
committerRadim Krčmář <rkrcmar@redhat.com>
Thu, 30 Aug 2018 15:15:12 +0000 (17:15 +0200)
commit710ab11ad9329d2d4b044405e328c994b19a2aa9
tree654adc6f7cef41e5c4083b248043ee842b360701
parent617c66b9f236d20f11cecbb3f45e6d5675b2fae1
tools/kvm_stat: fix updates for dead guests

With pid filtering active, when a guest is removed e.g. via virsh shutdown,
successive updates produce garbage.
Therefore, we add code to detect this case and prevent further body updates.
Note that when displaying the help dialog via 'h' in this case, once we exit
we're stuck with the 'Collecting data...' message till we remove the filter.

Signed-off-by: Stefan Raspl <raspl@linux.ibm.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
tools/kvm/kvm_stat/kvm_stat