summaryrefslogtreecommitdiff
path: root/eio.c
diff options
context:
space:
mode:
Diffstat (limited to 'eio.c')
-rw-r--r--eio.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/eio.c b/eio.c
index 41561d3..cef46a3 100644
--- a/eio.c
+++ b/eio.c
@@ -1213,9 +1213,13 @@ eio__scandir (eio_req *req, etp_worker *self)
namesoffs += len;
++dentoffs;
}
+
+ if (EIO_CANCELLED (req))
+ {
+ errno = ECANCELED;
+ break;
+ }
}
- else
- req->result = -1;
}
#if !(_POSIX_MAPPED_FILES && _POSIX_SYNCHRONIZED_IO)