mirror of https://github.com/Icinga/icinga2.git
parent
9313373447
commit
365390b5f0
|
@ -63,7 +63,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]);
|
||||||
|
|
Loading…
Reference in New Issue