]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Avoid bogus I/O event errors when closing the QEMU monitor
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 28 Sep 2012 14:27:39 +0000 (15:27 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 28 Sep 2012 15:50:51 +0000 (16:50 +0100)
commit89563efc0209b854d2b2e554423423d7602acdbd
tree22cb5a35632c093575ce7e53944b15c5d871a2de
parent8e122c2cdf79e3b74a7e6e81564045e05b51541e
Avoid bogus I/O event errors when closing the QEMU monitor

After calling qemuMonitorClose(), it is still possible for
the QEMU monitor I/O event callback to get invoked. This
will trigger an error message because mon->fd has been set
to -1 at this point. Silently ignore the case where mon->fd
is -1, likewise for mon->watch being zero.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/qemu/qemu_monitor.c