mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Cope if xenstore is down.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
186f0e02a1
commit
2700e32492
1 file changed
+5
@@ -22,6 +22,11 @@ int main(int argc, char **argv)
|
||||
|
||||
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);
|
||||
|
||||