From: Ian Campbell Subject: Re: [PATCH 2 of 6] libxl: bugfix: create_domain() return to caller if !daemonize Date: Tue, 31 Jan 2012 09:47:07 +0000 Message-ID: <1328003228.26983.312.camel@zakaz.uk.xensource.com> References: <39f63438767a8225a314.1327971907@athos.nss.cs.ubc.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <39f63438767a8225a314.1327971907@athos.nss.cs.ubc.ca> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "rshriram@cs.ubc.ca" Cc: Anthony Perard , "brendan@cs.ubc.ca" , "xen-devel@lists.xensource.com" , Ian Jackson List-Id: xen-devel@lists.xenproject.org On Tue, 2012-01-31 at 01:05 +0000, rshriram@cs.ubc.ca wrote: > # HG changeset patch > # User Shriram Rajagopalan > # Date 1327971504 28800 > # Node ID 39f63438767a8225a3148a43139c10f55a62c669 > # Parent 20bbc4a754a701ef14c9136a1adffc1c90bc1f4a > 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 20bbc4a754a7 -r 39f63438767a tools/libxl/xl_cmdimpl.c > --- a/tools/libxl/xl_cmdimpl.c Mon Jan 30 16:58:13 2012 -0800 > +++ b/tools/libxl/xl_cmdimpl.c Mon Jan 30 16:58:24 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;