[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 11/12] Fix detached migration with exec.

From: Glauber Costa
Subject: [Qemu-devel] [PATCH 11/12] Fix detached migration with exec.
Date: Wed, 26 Aug 2009 09:05:45 -0400

From: Chris Lalancette <address@hidden>

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

Signed-off-by: Chris Lalancette <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
Signed-off-by: Glauber Costa <address@hidden>
 migration-exec.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/migration-exec.c b/migration-exec.c
index ade592e..6786dbf 100644
--- a/migration-exec.c
+++ b/migration-exec.c
@@ -74,10 +74,7 @@ MigrationState *exec_start_outgoing_migration(const char 
         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");

reply via email to

[Prev in Thread] Current Thread [Next in Thread]