From bc6d82c560360eba20ca947e206cc96259372b20 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 22 Feb 2016 08:12:35 +0100 Subject: [PATCH] Build fix for CentOS 5 fixes #11179 --- lib/base/socketevents.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/base/socketevents.cpp b/lib/base/socketevents.cpp index 0a350b253..58d0d1d94 100644 --- a/lib/base/socketevents.cpp +++ b/lib/base/socketevents.cpp @@ -72,7 +72,8 @@ void SocketEvents::InitializeThread(void) { for (int i = 0; i < SOCKET_IOTHREADS; i++) { #ifdef __linux__ - l_SocketIOPollFDs[i] = epoll_create1(EPOLL_CLOEXEC); + l_SocketIOPollFDs[i] = epoll_create(128); + Utility::SetCloExec(l_SocketIOPollFDs[i]); #endif /* __linux__ */ Socket::SocketPair(l_SocketIOEventFDs[i]); -- 2.40.0