fix return status when domain didn't show up

This commit is contained in:
Guido Günther 2009-02-11 20:33:11 +00:00
parent 98352a103b
commit e9c920ba67
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Wed Feb 11 21:30:47 CET 2009 Guido Günther <agx@sigxcpu.org>
* src/qemu_driver.c (qemudStartVMDaemon): fix return status when
domain didn't show up
Mon Feb 9 17:26:07 +0100 2009 Jim Meyering <meyering@redhat.com>
libvirtd: new config-file option: unix_sock_dir

View File

@ -1218,8 +1218,11 @@ static int qemudStartVMDaemon(virConnectPtr conn,
usleep(100*1000);
retries--;
}
if (ret)
qemudLog(QEMUD_WARN, _("Domain %s didn't show up\n"), vm->def->name);
if (ret) {
qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
_("Domain %s didn't show up\n"), vm->def->name);
ret = -1;
}
} else {
qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
"%s", _("Unable to daemonize QEMU process"));