Skip to contentSkip to conversation

libxl: correctly propagate errors from libxl_domain_destroy

PATCH In review Ian Campbell 2 participants 2 messages Sep 21, 2011 – Sep 28, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxl: correctly propagate errors from libxl_domain_destroy

# HG changeset patch
# User Ian Campbell <[email protected]>
# Date 1316609965 -3600
# Node ID 7c4b34932f2b44fb7050dd8552d6beabacb12256 # Parent 41cd57151203cf78a12ee1748bcce5475b181ad6
libxl: correctly propagate errors from libxl_domain_destroy

currently it return success e.g. even if xc_domain_destroy fails.

tools/libxl/libxl.c +1 -1
diff -r 41cd57151203 -r 7c4b34932f2b tools/libxl/libxl.c
@@ -785,7 +785,7 @@ int libxl_domain_destroy(libxl_ctx *ctx,
     rc = 0;
 out:
     libxl__free_all(&gc);
-    return 0;
+    return rc;
 }
 
 int libxl_console_exec(libxl_ctx *ctx, uint32_t domid, int cons_num, libxl_console_type type)