Cleanup code. Part of [#3398]
This commit is contained in:
parent
0a452bef8e
commit
f762b4bb68
@ -33,7 +33,6 @@
|
||||
#include <stddef.h>
|
||||
#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.
|
||||
|
Loading…
Reference in New Issue
Block a user