Ian Campbell
2011-Sep-21 13:56 UTC
[Xen-devel] [PATCH] libxl: correctly propagate errors from libxl_domain_destroy
# HG changeset patch # User Ian Campbell <ian.campbell@citrix.com> # 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. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> diff -r 41cd57151203 -r 7c4b34932f2b tools/libxl/libxl.c --- a/tools/libxl/libxl.c Wed Sep 21 13:59:24 2011 +0100 +++ b/tools/libxl/libxl.c Wed Sep 21 13:59:25 2011 +0100 @@ -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) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Jackson
2011-Sep-28 15:32 UTC
Re: [Xen-devel] [PATCH] libxl: correctly propagate errors from libxl_domain_destroy
Ian Campbell writes ("[Xen-devel] [PATCH] libxl: correctly propagate errors from libxl_domain_destroy"):> libxl: correctly propagate errors from libxl_domain_destroyAcked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel