core: reactor::run(): cosmetic rearrangement

This commit is contained in:
Avi Kivity
2014-09-08 21:39:52 +03:00
parent 014657eaff
commit d71ac705a6

View File

@@ -265,10 +265,10 @@ void reactor::run() {
}
current_tasks.clear();
}
std::array<epoll_event, 128> eevt;
if (_stopped) {
break;
}
std::array<epoll_event, 128> eevt;
int nr = ::epoll_wait(_epollfd.get(), eevt.data(), eevt.size(), -1);
if (nr == -1 && errno == EINTR) {
continue; // gdb can cause this