libxl: correctly propagate errors from libxl_domain_resume
authorIan Campbell <ian.campbell@citrix.com>
Thu, 13 Oct 2011 08:37:06 +0000 (09:37 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 13 Oct 2011 08:37:06 +0000 (09:37 +0100)
currently it return success no matter what.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
tools/libxl/libxl.c

index 1748e040a967f09a3f1dbc8cde7eab0fc97fae51..064fbc466266634add96f905b8a8e7853de946ca 100644 (file)
@@ -261,7 +261,7 @@ int libxl_domain_resume(libxl_ctx *ctx, uint32_t domid)
     }
 out:
     libxl__free_all(&gc);
-    return 0;
+    return rc;
 }
 
 /*