xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: linux@eikelenboom.it
To: xen-devel@lists.xen.org
Cc: Ian.Jackson@eu.citrix.com, ian.campbell@citrix.com
Subject: [PATCH 1/1] xl: Fix accidently waiting for domains to shutdown without --wait option
Date: Sat, 20 Oct 2012 01:13:04 +0200	[thread overview]
Message-ID: <1350688384-2482-2-git-send-email-linux@eikelenboom.it> (raw)
In-Reply-To: <1350688384-2482-1-git-send-email-linux@eikelenboom.it>

From: Sander Eikelenboom <linux@eikelenboom>

Introduced by changeset 26091: "xl: Add --wait and --all to xl reboot."

Signed-off-by: Sander Eikelenboom <linux@eikelenboom>
---
 tools/libxl/xl_cmdimpl.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index dc80595..0e65f2b 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -3774,7 +3774,9 @@ static int main_shutdown_or_reboot(int reboot, int argc, char **argv)
                fallback_trigger);
         }
 
-        wait_for_domain_deaths(deathws, nb_domain - 1 /* not dom 0 */);
+        if (wait_for_it)
+            wait_for_domain_deaths(deathws, nb_domain - 1 /* not dom 0 */);
+
         libxl_dominfo_list_free(dominfo, nb_domain);
     } else {
         libxl_evgen_domain_death *deathw = NULL;
-- 
1.7.2.5

  reply	other threads:[~2012-10-19 23:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-19 23:13 xl: Fix accidently waiting for domains to shutdown without --wait option linux
2012-10-19 23:13 ` linux [this message]
2012-10-25 13:47   ` [PATCH 1/1] " Sander Eikelenboom
2012-10-25 15:05   ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1350688384-2482-2-git-send-email-linux@eikelenboom.it \
    --to=linux@eikelenboom.it \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).