From mboxrd@z Thu Jan 1 00:00:00 1970 From: rshriram@cs.ubc.ca Subject: [PATCH 2 of 6 V3] libxl: bugfix: create_domain() return to caller if !daemonize Date: Thu, 02 Feb 2012 22:49:58 -0800 Message-ID: <636da26c40d37b84a93b.1328251798@athos.nss.cs.ubc.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: brendan@cs.ubc.ca, ian.jackson@eu.citrix.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Shriram Rajagopalan # Date 1328251593 28800 # Node ID 636da26c40d37b84a93b6a6c3881b2fccc768aa2 # Parent 340dd6a3f0dab2fcba83a68dea072e9d9af20182 libxl: bugfix: create_domain() return to caller if !daemonize Currently the create_domain function does not honor the daemonize flag properly. It exits irrespective of the value of the flag. This patch fixes the issue. Signed-off-by: Shriram Rajagopalan Acked-by: Ian Campbell diff -r 340dd6a3f0da -r 636da26c40d3 tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Thu Feb 02 22:46:32 2012 -0800 +++ b/tools/libxl/xl_cmdimpl.c Thu Feb 02 22:46:33 2012 -0800 @@ -1814,7 +1814,7 @@ waitpid_out: * If we have daemonized then do not return to the caller -- this has * already happened in the parent. */ - if ( !need_daemon ) + if ( daemonize && !need_daemon ) exit(ret); return ret;