diff options
author | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-28 06:05:30 +0000 |
---|---|---|
committer | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-28 06:05:30 +0000 |
commit | 642218aed7c59304811227cde33816cf36f73b45 (patch) | |
tree | 196e21f28cef9a980b9f0f4eba45352fd358bb89 /src | |
parent | 7753c8bb95d88fc278e1daa3e24fac0e94bc069c (diff) |
Added errno to the epoll failure message for more detail
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6448 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/socketengine_epoll.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/socketengine_epoll.cpp b/src/socketengine_epoll.cpp index 8f346cf3a..4ed68ca57 100644 --- a/src/socketengine_epoll.cpp +++ b/src/socketengine_epoll.cpp @@ -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; |