Re: [libvirt] [PATCHv2 01/14] Check for domain liveness in qemuDomainObjExitMonitor

2015-01-13 Thread Ján Tomko
On 01/12/2015 08:02 PM, John Ferlan wrote: > > > On 01/07/2015 10:42 AM, Ján Tomko wrote: >> 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, pu

Re: [libvirt] [PATCHv2 01/14] Check for domain liveness in qemuDomainObjExitMonitor

2015-01-12 Thread John Ferlan
On 01/07/2015 10:42 AM, Ján Tomko wrote: > 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 ret

[libvirt] [PATCHv2 01/14] Check for domain liveness in qemuDomainObjExitMonitor

2015-01-07 Thread Ján Tomko
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/qem