]> 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>
Tue, 23 Feb 2016 08:51:52 +0000 (09:51 +0100)
fixes #11179

lib/base/socketevents.cpp

index 865c1c495186fe904e74bc18a467c066f945f2ec..6557e9f3620e34a1c61468a40d5f6f10a7f49cfa 100644 (file)
@@ -63,7 +63,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]);