summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/queue.c b/src/queue.c
index 007733c..203b534 100644
--- a/src/queue.c
+++ b/src/queue.c
@@ -23,7 +23,7 @@ static int __io_uring_get_cqe(struct io_uring *ring,
if (*cqe_ptr)
break;
if (!wait)
- break;
+ return -EAGAIN;
ret = io_uring_enter(ring->ring_fd, 0, 1,
IORING_ENTER_GETEVENTS, NULL);
if (ret < 0)