]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/socketengine_epoll.cpp
Fix --with-max-clients not taking a parameter (reported by erich)
[user/henk/code/inspircd.git] / src / socketengine_epoll.cpp
index bc0013b4c8104e231e28599c8ec859dcd3533c84..0be3b25c80e6b527148c816ba3e4c228183c7491 100644 (file)
@@ -2,12 +2,9 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
- *                       E-mail:
- *                <brain@chatspike.net>
- *                <Craig@chatspike.net>
+ *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
  *
- * Written by Craig Edwards, Craig McLure, and others.
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
  *
@@ -15,6 +12,7 @@
  */
 
 #include "inspircd.h"
+#include "exitcodes.h"
 #include <sys/epoll.h>
 #include "socketengine_epoll.h"
 
@@ -28,7 +26,7 @@ EPollEngine::EPollEngine(InspIRCd* Instance) : SocketEngine(Instance)
                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;
 }
@@ -95,8 +93,6 @@ void EPollEngine::WantWrite(EventHandler* eh)
 
 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;
@@ -108,10 +104,7 @@ bool EPollEngine::DelFd(EventHandler* eh)
        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;