From: Shriram Rajagopalan Date: Thu, 9 Feb 2012 18:06:24 +0000 (+0000) Subject: libxl: bugfix: create_domain() return to caller if !daemonize X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=490d431f99d32c2c700513b59f816729cfa1c1af;p=xen.git 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 Committed-by: Ian Jackson --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 61ca902084..f10c20c6b4 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1852,7 +1852,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;