From b9cad8b70742acad1684a8412210775b07ba319a Mon Sep 17 00:00:00 2001 From: Jiri Denemark Date: Thu, 17 Dec 2015 23:23:16 +0100 Subject: [PATCH] virsh: Interrupt *event --loop on disconnect 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 --- tools/virsh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/virsh.c b/tools/virsh.c index 2b53bf7be9..1a9a713634 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -130,6 +130,7 @@ virshCatchDisconnect(virConnectPtr conn, virFreeError(error); } disconnected++; + vshEventDone(ctl); } }