mirror of https://github.com/Icinga/icinga2.git
parent
781c34f6a4
commit
bc6d82c560
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue