Re: [PATCH 4/4] virsh: Interrupt *event --loop on disconnect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]