[libvirt] [PATCH] Add check for poll error events in monitor

Eric Blake eblake at redhat.com
Fri Jan 21 17:55:20 UTC 2011


On 01/21/2011 10:40 AM, Daniel P. Berrange wrote:
> Handle poll errors in the same way as hangup event
> 
> * src/qemu/qemu_monitor.c: Handle error events
> ---
>  src/qemu/qemu_monitor.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c
> index 3026733..0c14277 100644
> --- a/src/qemu/qemu_monitor.c
> +++ b/src/qemu/qemu_monitor.c
> @@ -550,7 +550,8 @@ qemuMonitorIO(int watch, int fd, int events, void *opaque) {
>  
>          qemuMonitorUpdateWatch(mon);
>  
> -        if (events & VIR_EVENT_HANDLE_HANGUP) {
> +        if (events & (VIR_EVENT_HANDLE_HANGUP |
> +                      VIR_EVENT_HANDLE_ERROR)) {

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110121/34c627dd/attachment-0001.sig>


More information about the libvir-list mailing list