From: Ian Campbell Date: Wed, 28 Sep 2011 15:32:31 +0000 (+0100) Subject: libxl: correctly propagate errors from libxl_domain_destroy X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~9856 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=990adf50fbf1e587456f31421309fd49b59b06ff;p=xen.git libxl: correctly propagate errors from libxl_domain_destroy currently it return success e.g. even if xc_domain_destroy fails. Signed-off-by: Ian Campbell Acked-by: Ian Jackson Committed-by: Ian Jackson --- diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 426058f4ba..36ad1f1a97 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -785,7 +785,7 @@ int libxl_domain_destroy(libxl_ctx *ctx, uint32_t domid, int force) 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)