refactor epoll timeout
@@ -219,15 +219,13 @@ int epoll_wait(int epfd,
w->timeout = register_timer(milliseconds(timeout), closure(h, epoll_blocked_finish, w));
#ifdef EPOLL_DEBUG
rprintf(" registered timer %p\n", w->timeout);
-#endif
- }
-
-#ifdef EPOLL_DEBUG
rprintf(" sleeping...\n");
#endif
w->sleeping = true;
thread_sleep(current);
}
+ return 0;
+}
u64 epoll_ctl(int epfd, int op, int fd, struct epoll_event *event)
{
