]> granicus.if.org Git - icinga2/commitdiff
Build fix for CentOS 5
authorGunnar Beutner <gunnar@beutner.name>
Mon, 22 Feb 2016 07:12:35 +0000 (08:12 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 22 Feb 2016 07:12:35 +0000 (08:12 +0100)
fixes #11179

lib/base/socketevents.cpp

index 0a350b25303d08b7a9fb1fc7226fab1959615a13..58d0d1d94654dc51d2b6fa194f06fe36e6f2025e 100644 (file)
@@ -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]);