]> xenbits.xensource.com Git - libvirt.git/commitdiff
Quit virsh immediately if connection open fails, rather than giving a non-functional...
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 5 Dec 2007 16:24:22 +0000 (16:24 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 5 Dec 2007 16:24:22 +0000 (16:24 +0000)
ChangeLog
src/virsh.c

index d15a0d870f4ab8f98908d4947d45d8644dd85a9b..9cecb0fd11f648a71ced0e50c5b755f27c35a059 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Dec  5 11:24:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
+
+       * src/virsh.c: quit if initial conection attempt fails
+
 Wed Dec  5 10:29:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
 
        * qemud/Makefile.am: Fix VPATH build for remote_generate_stubs.pl
index 207a0ddc7252b19d8f4d02bd8bb42920b4b9b3c1..c6fc5deefd8fcb798168a5d2a61ab79d094c123c 100644 (file)
@@ -4529,8 +4529,10 @@ vshInit(vshControl * ctl)
      * vshConnectionUsability, except ones which don't need a connection
      * such as "help".
      */
-    if (!ctl->conn)
+    if (!ctl->conn) {
         vshError(ctl, FALSE, _("failed to connect to the hypervisor"));
+        return FALSE;
+    }
 
     return TRUE;
 }