tools/kvm_stat: handle SIGINT in log and batch modes
authorStefan Raspl <raspl@linux.vnet.ibm.com>
Fri, 10 Mar 2017 12:40:02 +0000 (13:40 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 Mar 2017 10:01:25 +0000 (12:01 +0200)
commitdadf1e7839243474b691ca4258bfd2a59e628a5e
tree8908459086c1306540f7aa3147aad51ff5d4a6e3
parent9fc0adfc427a5e3f95f8db8dafabe1eaa3720f4a
tools/kvm_stat: handle SIGINT in log and batch modes

SIGINT causes ugly unhandled exceptions in log and batch mode, which we
prevent by catching the exceptions accordingly.

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