]> xenbits.xensource.com Git - libvirt.git/commitdiff
fix return status when domain didn't show up
authorGuido Günther <agx@sigxcpu.org>
Wed, 11 Feb 2009 20:33:11 +0000 (20:33 +0000)
committerGuido Günther <agx@sigxcpu.org>
Wed, 11 Feb 2009 20:33:11 +0000 (20:33 +0000)
ChangeLog
src/qemu_driver.c

index 996f5cd5fb0a024aad72fe36ed1a76fdddc74ced..3f047a0639b560c9763ea5c6ea9aedbe98a82081 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 4bec4823e7469de167658fe26d98a7b0463145f5..47ca6c768b195e4b63194b432232e7e03d2c304c 100644 (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"));