From: Daniel P. Berrange Date: Mon, 13 Dec 2010 16:05:41 +0000 (+0000) Subject: Add check for poll error events in monitor X-Git-Tag: v0.8.8~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0e4e4de7a88268092e11774356d26130dc65fcc;p=thirdparty%2Flibvirt.git Add check for poll error events in monitor Handle poll errors in the same way as hangup event * src/qemu/qemu_monitor.c: Handle error events --- diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c index 302673320b..0c142770d8 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)) { /* If IO process resulted in EOF & we have a message, * then wakeup that waiter */ if (mon->msg && !mon->msg->finished) {