WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] libxl: correctly propagate errors from libxl_domain_

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] libxl: correctly propagate errors from libxl_domain_destroy
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: Fri, 15 Jul 2011 14:06:50 +0100
Cc: Ian Campbell <ian.campbell@xxxxxxxxxx>
Delivery-date: Fri, 15 Jul 2011 06:07:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.6.4
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1310735206 -3600
# Node ID b719c752f2431c76e9f1e366e7c2947e6504d24a
# Parent  567ea0a1b5af9d51a2a22be75741abeb39bceb5f
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@xxxxxxxxxx>

diff -r 567ea0a1b5af -r b719c752f243 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Fri Jul 15 14:03:31 2011 +0100
+++ b/tools/libxl/libxl.c       Fri Jul 15 14:06:46 2011 +0100
@@ -780,7 +780,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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] libxl: correctly propagate errors from libxl_domain_destroy, Ian Campbell <=