qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Chris Lalancette <clalance@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Fix detached migration with exec.
Date: Mon, 10 Aug 2009 12:23:41 +0200	[thread overview]
Message-ID: <4A7FF52D.6090707@redhat.com> (raw)
In-Reply-To: <1249484855-23277-1-git-send-email-clalance@redhat.com>

Chris Lalancette wrote:
> When trying to do detached migration with exec, I found that
> the monitor wouldn't always return in a timely manner.  I
> tracked this down to exec_start_outgoing_migration.  It
> appeared we were setting the fd to NONBLOCK'ing, but in
> point of fact we weren't.
> 
> This bugfix should also go onto the stable 0.10 branch

ping?

> 
> Signed-off-by: Chris Lalancette <clalance@redhat.com>
> ---
>  migration-exec.c |    5 +----
>  1 files changed, 1 insertions(+), 4 deletions(-)
> 
> diff --git a/migration-exec.c b/migration-exec.c
> index e3616be..ef4620f 100644
> --- a/migration-exec.c
> +++ b/migration-exec.c
> @@ -73,10 +73,7 @@ MigrationState *exec_start_outgoing_migration(const char *command,
>          goto err_after_open;
>      }
>  
> -    if (fcntl(s->fd, F_SETFD, O_NONBLOCK) == -1) {
> -        dprintf("Unable to set nonblocking mode on file descriptor\n");
> -        goto err_after_open;
> -    }
> +    socket_set_nonblock(s->fd);
>  
>      s->opaque = qemu_popen(f, "w");
>  


-- 
Chris Lalancette

      reply	other threads:[~2009-08-10 10:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-05 15:07 [Qemu-devel] [PATCH] Fix detached migration with exec Chris Lalancette
2009-08-10 10:23 ` Chris Lalancette [this message]

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=4A7FF52D.6090707@redhat.com \
    --to=clalance@redhat.com \
    --cc=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.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).