[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Cope if xenstore is down.



# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID d47438cf9fcb8514b12f890ca161f77597f058a8
# Parent  29bbcd88a853f582025f9f00e0ffc03b3112295d
Cope if xenstore is down.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r 29bbcd88a853 -r d47438cf9fcb tools/xenstore/xenstore_control.c
--- a/tools/xenstore/xenstore_control.c Wed Mar  8 22:57:21 2006
+++ b/tools/xenstore/xenstore_control.c Wed Mar  8 22:57:27 2006
@@ -22,6 +22,11 @@
 
   xsh = xs_daemon_open();
 
+  if (xsh == NULL) {
+    fprintf(stderr, "Failed to contact Xenstored.\n");
+    return 1;
+  }
+
   xs_debug_command(xsh, argv[1], NULL, 0);
 
   xs_daemon_close(xsh);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.