commit e1a3c535050a41360e42406917570bc3c3c7f52d
Author: Radek Novacek <rad.n(a)centrum.cz>
Date: Fri Aug 24 10:55:15 2012 +0200
Don't start event loop when not running in background mode
virt-who.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/virt-who.py b/virt-who.py
index c9afa0f..7faaa17 100644
--- a/virt-who.py
+++ b/virt-who.py
@@ -406,7 +406,7 @@ def main():
logger.error("Unable to fork, continuing in foreground")
if not options.oneshot:
- if options.virtType == "libvirt":
+ if options.background and options.virtType == "libvirt":
logger.debug("Starting event loop")
virEventLoopPureStart()
else:
Show replies by date