All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools: xl: on create, if debug && !daemonize, wait for domain destroy in the foreground
@ 2011-04-18 16:24 Ian Campbell
  2011-05-04 13:44 ` Ian Jackson
  0 siblings, 1 reply; 8+ messages in thread
From: Ian Campbell @ 2011-04-18 16:24 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Campbell

# HG changeset patch
# User Ian Campbell <ian.campbell@citrix.com>
# Date 1303143831 -3600
# Node ID 31b98feb0eb6a50fe9e664a31feaa32ad3dac7cc
# Parent  05abea47f4dc670974cd513a0e74db54d22eacc9
tools: xl: on create, if debug && !daemonize, wait for domain destroy in the foreground

Perhaps this should be a separate option but I find that when I'm debugging xl
in the foreground this is the behaviour I would like.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>

diff -r 05abea47f4dc -r 31b98feb0eb6 tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c	Mon Apr 18 17:21:44 2011 +0100
+++ b/tools/libxl/xl_cmdimpl.c	Mon Apr 18 17:23:51 2011 +0100
@@ -1354,7 +1354,7 @@ static int create_domain(struct domain_c
     int migrate_fd = dom_info->migrate_fd;
 
     int fd, i;
-    int need_daemon = 1;
+    int need_daemon = daemonize;
     int ret, rc;
     libxl_waiter *w1 = NULL, *w2 = NULL;
     void *config_data = 0;
@@ -1537,7 +1537,7 @@ start:
         libxl_domain_unpause(ctx, domid);
 
     ret = domid; /* caller gets success in parent */
-    if (!daemonize)
+    if (!daemonize && !debug)
         goto out;
 
     if (need_daemon) {

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-01-28 15:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-18 16:24 [PATCH] tools: xl: on create, if debug && !daemonize, wait for domain destroy in the foreground Ian Campbell
2011-05-04 13:44 ` Ian Jackson
2011-05-04 15:00   ` Ian Campbell
2011-05-04 15:36     ` [PATCH] tools: xl: add option to run in foreground but still monitor for reboot etc Ian Campbell
2011-05-06 12:40       ` Ian Campbell
2011-05-17 16:32         ` Ian Jackson
2013-01-28 15:22         ` Olaf Hering
2013-01-28 15:27           ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.