|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Cope if xenstore is down.
# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 1a1e3dcbbf19401bb13ff5f304bd2ab65f0af720
# Parent 26af50da86b77d4599680199e148a98a240ea88d
Cope if xenstore is down.
Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
diff -r 26af50da86b7 -r 1a1e3dcbbf19 tools/xenstore/xenstore_control.c
--- a/tools/xenstore/xenstore_control.c Thu Mar 2 20:44:49 2006
+++ b/tools/xenstore/xenstore_control.c Thu Mar 2 20:45:13 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>
|
- [Xen-changelog] Cope if xenstore is down.,
Xen patchbot -unstable <=
|
|
|
|
|