Build fix for CentOS 5

fixes #11179
This commit is contained in:
Gunnar Beutner 2016-02-22 08:12:35 +01:00
parent 781c34f6a4
commit bc6d82c560
1 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,8 @@ void SocketEvents::InitializeThread(void)
{ {
for (int i = 0; i < SOCKET_IOTHREADS; i++) { for (int i = 0; i < SOCKET_IOTHREADS; i++) {
#ifdef __linux__ #ifdef __linux__
l_SocketIOPollFDs[i] = epoll_create1(EPOLL_CLOEXEC); l_SocketIOPollFDs[i] = epoll_create(128);
Utility::SetCloExec(l_SocketIOPollFDs[i]);
#endif /* __linux__ */ #endif /* __linux__ */
Socket::SocketPair(l_SocketIOEventFDs[i]); Socket::SocketPair(l_SocketIOEventFDs[i]);