]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Added errno to the epoll failure message for more detail
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 28 Jan 2007 06:05:30 +0000 (06:05 +0000)
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 28 Jan 2007 06:05:30 +0000 (06:05 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6448 e03df62e-2008-0410-955e-edbf42e46eb7

src/socketengine_epoll.cpp

index 8f346cf3a03c14b2a7354a5f47f407cf06f05c1f..4ed68ca57a1f913aadfb0cb85e86fe5d9b3136cd 100644 (file)
@@ -22,10 +22,10 @@ EPollEngine::EPollEngine(InspIRCd* Instance) : SocketEngine(Instance)
 
        if (EngineHandle == -1)
        {
-               ServerInstance->Log(SPARSE,"ERROR: Could not initialize socket engine. Your kernel probably does not have the proper features.");
-               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.");
+               ServerInstance->Log(SPARSE,"ERROR: Could not initialize socket engine: %s", strerror(errno));
+               ServerInstance->Log(SPARSE,"ERROR: Your kernel probably does not have the proper features. This is a fatal error, exiting now.");
+               printf("ERROR: Could not initialize socket engine: %s\n", strerror(errno));
+               printf("ERROR: Your kernel probably does not have the proper features. This is a fatal error, exiting now.\n");
                InspIRCd::Exit(EXIT_STATUS_SOCKETENGINE);
        }
        CurrentSetSize = 0;