From: Roger Pau Monne Subject: [PATCH] libxl: set guest_domid even if libxl__domain_make fails Date: Fri, 4 May 2012 16:14:15 +0100 Message-ID: <1336144455-45617-1-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Ian Jackson , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org This is needed in order to perform the domain destruction if libxl__domain_make fails. Cc: Ian Jackson Signed-off-by: Roger Pau Monne --- To be applied after IanJ libxl: subprocess handling series tools/libxl/libxl_create.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c index 928a48c..788e553 100644 --- a/tools/libxl/libxl_create.c +++ b/tools/libxl/libxl_create.c @@ -607,6 +607,7 @@ static void initiate_domain_create(libxl__egc *egc, ret = libxl__domain_make(gc, &d_config->c_info, &domid); if (ret) { LIBXL__LOG(ctx, LIBXL__LOG_ERROR, "cannot make domain: %d", ret); + dcs->guest_domid = domid; ret = ERROR_FAIL; goto error_out; } -- 1.7.7.5 (Apple Git-26)