From: "Michael R. Hines" <mrhi...@us.ibm.com> migration.c thinks this is an error for RDMA, but it's not.
Signed-off-by: Michael R. Hines <mrhi...@us.ibm.com> --- util/oslib-posix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/oslib-posix.c b/util/oslib-posix.c index 4e4b819..0b398f4 100644 --- a/util/oslib-posix.c +++ b/util/oslib-posix.c @@ -144,6 +144,8 @@ void qemu_set_block(int fd) void qemu_set_nonblock(int fd) { int f; + if(fd == -1) + return; f = fcntl(fd, F_GETFL); fcntl(fd, F_SETFL, f | O_NONBLOCK); } -- 1.7.10.4