]> xenbits.xensource.com Git - libvirt.git/commit
Check for domain liveness in qemuDomainObjExitMonitor
authorJán Tomko <jtomko@redhat.com>
Fri, 12 Dec 2014 15:57:21 +0000 (16:57 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 14 Jan 2015 18:30:32 +0000 (19:30 +0100)
commitdc2fd51fd727bbb6de172e0ca4b7dd307bb99180
tree002e7fdffda6aafa6996112ce32f8debb22f4e86
parent7e72de49fe63f3c4892b26002928252d45cc3822
Check for domain liveness in qemuDomainObjExitMonitor

The domain might disappear during the time in monitor when
the virDomainObjPtr is unlocked, so the caller needs to check
if it's still alive.

Since most of the callers are going to need it, put the
check inside qemuDomainObjExitMonitor and return -1 if
the domain died in the meantime.
src/qemu/THREADS.txt
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h