summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ioq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ioq.c b/src/ioq.c
index 0936adf..2558d62 100644
--- a/src/ioq.c
+++ b/src/ioq.c
@@ -623,6 +623,8 @@ static void ioq_reap_cqe(struct ioq_ring_state *state, struct io_uring_cqe *cqe)
if (ent->result >= 0) {
// TODO: io_uring_prep_getdents()
bfs_polldir(args->dir);
+ } else {
+ xclose(fd);
}
break;