]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Fix regression from "Avoid polling on FDs with no events"
authorChris Lalancette <clalance@redhat.com>
Thu, 10 Sep 2009 09:36:35 +0000 (11:36 +0200)
committerChris Lalancette <clalance@redhat.com>
Thu, 10 Sep 2009 11:15:26 +0000 (13:15 +0200)
commit100cae73599fd2fc2a0d37dd798ed030f84f5fee
tree571b6b3e07bcaccd1a7ce826bf61ae8780607752
parentf238709304f9f6c57204cdd943e542cbae38fa5f
Fix regression from "Avoid polling on FDs with no events"

After the mentioned patch was applied, I noticed that
shutting down a kvm guest from inside (i.e. poweroff) caused
the guest to shutdown, but not removed from the list of
active guests.  DanB pointed out that the problem is that
the virEventAddHandle() call in the qemu driver was asking
to watch for 0 events, not HANGUP | ERROR as it should.  Add
these events so that shutdown works again.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
src/qemu_driver.c