[libvirt] [PATCH 4/4] virsh: Interrupt *event --loop on disconnect
Andrea Bolognani
abologna at redhat.com
Mon Dec 21 14:26:01 UTC 2015
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 at 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
More information about the libvir-list
mailing list