mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
Report qemu log data if we fail to daemonize the process.
This ensures the user will actually see 'hook' function error output.
This commit is contained in:
parent
79d9d2432f
commit
27d72bd517
@ -1,3 +1,7 @@
|
||||
Mon May 11 09:35:26 EDT 2009 Cole Robinson <crobinso@redhat.com>
|
||||
|
||||
* src/qemu_driver.c: Report qemu log data if we fail to daemonize.
|
||||
|
||||
Mon May 11 09:29:52 EDT 2009 Cole Robinson <crobinso@redhat.com>
|
||||
|
||||
* src/libvirt_private.syms src/util.[ch]: Add a helper function
|
||||
|
@ -1456,8 +1456,17 @@ static int qemudStartVMDaemon(virConnectPtr conn,
|
||||
_("Domain %s didn't show up\n"), vm->def->name);
|
||||
ret = -1;
|
||||
}
|
||||
} else
|
||||
ret = -1;
|
||||
} else if (ret == -2) {
|
||||
/* The virExec process that launches the daemon failed. Pending on
|
||||
* when it failed (we can't determine for sure), there may be
|
||||
* extra info in the domain log (if the hook failed for example).
|
||||
*
|
||||
* Pretend like things succeeded, and let 'WaitForMonitor' report
|
||||
* the log contents for us.
|
||||
*/
|
||||
vm->pid = child;
|
||||
ret = 0;
|
||||
}
|
||||
|
||||
vm->state = migrateFrom ? VIR_DOMAIN_PAUSED : VIR_DOMAIN_RUNNING;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user