ia64/xen-unstable

changeset 9127:1a1e3dcbbf19

Cope if xenstore is down.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Thu Mar 02 21:45:13 2006 +0100 (2006-03-02)
parents 26af50da86b7
children 871f768aadc6
files tools/xenstore/xenstore_control.c
line diff
     1.1 --- a/tools/xenstore/xenstore_control.c	Thu Mar 02 21:44:49 2006 +0100
     1.2 +++ b/tools/xenstore/xenstore_control.c	Thu Mar 02 21:45:13 2006 +0100
     1.3 @@ -22,6 +22,11 @@ int main(int argc, char **argv)
     1.4  
     1.5    xsh = xs_daemon_open();
     1.6  
     1.7 +  if (xsh == NULL) {
     1.8 +    fprintf(stderr, "Failed to contact Xenstored.\n");
     1.9 +    return 1;
    1.10 +  }
    1.11 +
    1.12    xs_debug_command(xsh, argv[1], NULL, 0);
    1.13  
    1.14    xs_daemon_close(xsh);