From 7d184f1f7278e8b034c0aca7fd40714884951624 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 24 Jan 2007 04:28:17 +0000 Subject: r20989: don't mark epoll as set until after the io_submit() succeeds this is part of the solution to LOCAL-EVENT on fort (This used to be commit 35f62bc12559e355d4ac73018afe255ea7c5866b) --- source4/lib/events/events_aio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/events') 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; } -- cgit