* [Qemu-devel] [PATCH] Fix detached migration with exec.
@ 2009-08-05 15:07 Chris Lalancette
2009-08-10 10:23 ` Chris Lalancette
0 siblings, 1 reply; 2+ messages in thread
From: Chris Lalancette @ 2009-08-05 15:07 UTC (permalink / raw)
To: qemu-devel; +Cc: Chris Lalancette
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 <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");
--
1.6.0.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] Fix detached migration with exec.
2009-08-05 15:07 [Qemu-devel] [PATCH] Fix detached migration with exec Chris Lalancette
@ 2009-08-10 10:23 ` Chris Lalancette
0 siblings, 0 replies; 2+ messages in thread
From: Chris Lalancette @ 2009-08-10 10:23 UTC (permalink / raw)
To: Anthony Liguori; +Cc: qemu-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-10 10:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-05 15:07 [Qemu-devel] [PATCH] Fix detached migration with exec Chris Lalancette
2009-08-10 10:23 ` Chris Lalancette
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).