summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--migration-exec.c5
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");
OpenPOWER on IntegriCloud