From adeb950c9102e5711877c819bea8e67f995037af Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Sun, 8 Feb 2015 13:04:12 +0100 Subject: [PATCH] Cleanup code. Part of [#3398] --- .../src/main/c/io_netty_channel_epoll_Native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport-native-epoll/src/main/c/io_netty_channel_epoll_Native.c b/transport-native-epoll/src/main/c/io_netty_channel_epoll_Native.c index 9a219f240c..85f3078683 100644 --- a/transport-native-epoll/src/main/c/io_netty_channel_epoll_Native.c +++ b/transport-native-epoll/src/main/c/io_netty_channel_epoll_Native.c @@ -33,7 +33,6 @@ #include #include "io_netty_channel_epoll_Native.h" - /** * On older Linux kernels, epoll can't handle timeout * values bigger than (LONG_MAX - 999ULL)/HZ. @@ -633,6 +632,7 @@ JNIEXPORT jint JNICALL Java_io_netty_channel_epoll_Native_epollWait0(JNIEnv* env // Workaround for bug in older linux kernels that can not handle bigger timeout then MAX_EPOLL_TIMEOUT_MSEC. timeout = MAX_EPOLL_TIMEOUT_MSEC; } + do { ready = epoll_wait(efd, ev, len, timeout); // was interrupted try again.