]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Avoid sending STOPPED event twice
authorJiri Denemark <jdenemar@redhat.com>
Tue, 18 Jan 2011 11:07:13 +0000 (12:07 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 19 Jan 2011 14:01:52 +0000 (15:01 +0100)
commit15e786589373e7bd5b949be911b90e56481740fb
treec834312c9ddb8285629ff7cb5001e6aa562f346b
parent45c02ee06fca418158e47c1e8096adcff6890818
qemu: Avoid sending STOPPED event twice

In some circumstances, libvirtd would issue two STOPPED events after it
stopped a domain. This was because an EOF event can arrive after a qemu
process is killed but before qemuMonitorClose() is called.

qemuHandleMonitorEOF() should ignore EOF when the domain is not running.

I wasn't able to reproduce this bug directly, only after adding an
artificial sleep() into qemudShutdownVMDaemon().
src/qemu/qemu_driver.c