提交 2be50649 编写于 作者: S Stefan Hajnoczi 提交者: Kevin Wolf

linux-aio: Fix typo in read() EINTR check

Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: NKevin Wolf <kwolf@redhat.com>
上级 adfe078e
......@@ -123,7 +123,7 @@ static void qemu_laio_completion_cb(void *opaque)
do {
ret = read(s->efd, &val, sizeof(val));
} while (ret == 1 && errno == EINTR);
} while (ret == -1 && errno == EINTR);
if (ret == -1 && errno == EAGAIN)
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册