WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[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

<Prev in Thread] Current Thread [Next in Thread>