On Mon, 2015-12-21 at 11:04 +0100, Jiri Denemark wrote:
The *event --loop commands would keep running even though a
connection
to libvirtd is lost. This doesn't make a lot of sense since clearly we
won't get any new events from the closed connection.
Signed-off-by: Jiri Denemark <jdenemar(a)redhat.com>
---
tools/virsh.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/virsh.c b/tools/virsh.c
index 2b53bf7..1a9a713 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -130,6 +130,7 @@ virshCatchDisconnect(virConnectPtr conn,
virFreeError(error);
}
disconnected++;
+ vshEventDone(ctl);
}
}
ACK.
--
Andrea Bolognani
Software Engineer - Virtualization Team