# HG changeset patch # User cl349@firebug.cl.cam.ac.uk # Date 1126030736 0 # Node ID 0922c82a4bf3f60d33d2e2ac84746a3f5eaf921e # Parent 513ba63787fe3f891284e0502fb1dc4cdeb605d7 Exit if xen_setup fails. Signed-off-by: Christian Limpach diff -r 513ba63787fe -r 0922c82a4bf3 tools/console/daemon/main.c --- a/tools/console/daemon/main.c Tue Sep 06 18:15:06 2005 +0000 +++ b/tools/console/daemon/main.c Tue Sep 06 18:18:56 2005 +0000 @@ -26,8 +26,6 @@ #include #include "xenctrl.h" -#include "xen/io/domain_controller.h" -#include "xcs_proto.h" #include "utils.h" #include "io.h" @@ -83,7 +81,8 @@ int main(int argc, char **argv) daemonize("/var/run/xenconsoled.pid"); } - xen_setup(); + if (!xen_setup()) + exit(1); enum_domains();