summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/events/events_aio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/events/events_aio.c b/source4/lib/events/events_aio.c
index 327b36bcba..cd3c32a9b8 100644
--- a/source4/lib/events/events_aio.c
+++ b/source4/lib/events/events_aio.c
@@ -204,10 +204,10 @@ static int setup_epoll_wait(struct aio_event_context *aio_ev)
aio_ev->epoll_iocb->u.c.offset = -1;
aio_ev->epoll_iocb->u.c.buf = aio_ev->epevent;
- aio_ev->is_epoll_set = 1;
if (io_submit(aio_ev->ioctx, 1, &aio_ev->epoll_iocb) != 1) {
return -1;
}
+ aio_ev->is_epoll_set = 1;
return 0;
}