*/
#include "inspircd.h"
+#include "exitcodes.h"
#include <sys/epoll.h>
#include "socketengine_epoll.h"
ServerInstance->Log(SPARSE,"ERROR: this is a fatal error, exiting now.");
printf("ERROR: Could not initialize socket engine. Your kernel probably does not have the proper features.");
printf("ERROR: this is a fatal error, exiting now.");
- InspIRCd::Exit(ERROR);
+ InspIRCd::Exit(EXIT_STATUS_SOCKETENGINE);
}
CurrentSetSize = 0;
}
bool EPollEngine::DelFd(EventHandler* eh)
{
- ServerInstance->Log(DEBUG,"EPollEngine::DelFd(%d)",eh->GetFd());
-
int fd = eh->GetFd();
if ((fd < 0) || (fd > MAX_DESCRIPTORS))
return false;
int i = epoll_ctl(EngineHandle, EPOLL_CTL_DEL, fd, &ev);
if (i < 0)
- {
- ServerInstance->Log(DEBUG,"epoll: List deletion failure: %s",strerror(errno));
return false;
- }
CurrentSetSize--;
ref[fd] = NULL;