diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-07-09 11:53:09 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-08-29 10:46:58 +0100 |
commit | 79d9b6566b90efac072720f37a1b57d73f539264 (patch) | |
tree | 69ab1d44cfc25c624e9a7c29e73c69843a223b1a /nbd.c | |
parent | a3462c656128e7b900ccc5d436f9e858d07de264 (diff) |
qemu-coroutine-io: fix for Win32
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'nbd.c')
-rw-r--r-- | nbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -156,7 +156,7 @@ ssize_t nbd_wr_sync(int fd, void *buffer, size_t size, bool do_read) err = socket_error(); /* recoverable error */ - if (err == EINTR || (offset > 0 && err == EAGAIN)) { + if (err == EINTR || (offset > 0 && (err == EAGAIN || err == EWOULDBLOCK))) { continue; } |