commit | 2be5064953540d5451480375519389f104eb7909 | [log] [tgz] |
---|---|---|
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | Wed Apr 14 12:13:36 2010 +0100 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri Apr 23 16:21:57 2010 +0200 |
tree | 36a48f3261b35d1a132aefc4193e48b9a6dbc4f5 | |
parent | adfe078e4b658c5406be089980c5b9034bae42a4 [diff] [blame] |
linux-aio: Fix typo in read() EINTR check Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
diff --git a/linux-aio.c b/linux-aio.c index 5e892b0..68f4b3d 100644 --- a/linux-aio.c +++ b/linux-aio.c
@@ -123,7 +123,7 @@ do { ret = read(s->efd, &val, sizeof(val)); - } while (ret == 1 && errno == EINTR); + } while (ret == -1 && errno == EINTR); if (ret == -1 && errno == EAGAIN) break;