commit 887d164740bb39399bd3b8119973846a40cda02f
Author: Radek Novacek <rnovacek(a)redhat.com>
Date: Fri May 16 11:10:29 2014 +0200
Fix crash on SIGHUP signal when system is being unregistered
virt-who.py | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/virt-who.py b/virt-who.py
index 3bc12ed..9262ebc 100644
--- a/virt-who.py
+++ b/virt-who.py
@@ -264,7 +264,13 @@ class VirtWho(object):
pass
self.virt = None
self.subscriptionManager = None
- self.checkConnections()
+ try:
+ self.checkConnections()
+ except (KeyboardInterrupt, SystemExit):
+ raise
+ except Exception, e:
+ exceptionCheck(e)
+ pass
self.logger.debug("virt-who configution reloaded")
self.doReload = False
Show replies by date