]> xenbits.xensource.com Git - xen.git/commitdiff
libxl: bugfix: create_domain() return to caller if !daemonize
authorShriram Rajagopalan <rshriram@cs.ubc.ca>
Thu, 9 Feb 2012 18:06:24 +0000 (18:06 +0000)
committerShriram Rajagopalan <rshriram@cs.ubc.ca>
Thu, 9 Feb 2012 18:06:24 +0000 (18:06 +0000)
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 <rshriram@cs.ubc.ca>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c

index 61ca90208418db7c29d739e12b8440f5a5b663c5..f10c20c6b4c5e00b65c21ef7b59fd7a6d8cbfe90 100644 (file)
@@ -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;