mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-08 22:39:56 +00:00
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
This commit is contained in:
parent
b8786c0641
commit
e0e4e4de7a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user