From 34667e8dfe599488448435e454a7e413d863c421 Mon Sep 17 00:00:00 2001 From: Tomasz Grabiec Date: Wed, 27 Aug 2014 13:28:23 +0200 Subject: [PATCH] reactor: fix io_setup() failure _io_context must be set to 0, otherwise io_setup fails with -EINVAL. Signed-off-by: Tomasz Grabiec Signed-off-by: Avi Kivity --- reactor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/reactor.cc b/reactor.cc index 10d0ef4088..5f54105862 100644 --- a/reactor.cc +++ b/reactor.cc @@ -35,6 +35,7 @@ reactor::reactor() : _epollfd(epoll_create1(EPOLL_CLOEXEC)) , _io_eventfd(eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK)) , _io_eventfd_state(_io_eventfd) + , _io_context(0) , _io_context_available(max_aio) { assert(_epollfd != -1); assert(_io_eventfd != -1);