aboutsummaryrefslogtreecommitdiff
path: root/src/socketengines/socketengine_ports.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2013-07-07 16:25:11 +0100
committerGravatar Peter Powell2013-07-07 16:25:11 +0100
commit805b7d3effc71d44665c0a7f590343c84e03db92 (patch)
tree711e0492f8231c02ae3d638052a4320881cd20c7 /src/socketengines/socketengine_ports.cpp
parentMerge pull request #563 from ElementalAlchemist/patch-1 (diff)
Fix low risk crash when we can't determine maximum open socket count.
Diffstat (limited to 'src/socketengines/socketengine_ports.cpp')
-rw-r--r--src/socketengines/socketengine_ports.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socketengines/socketengine_ports.cpp b/src/socketengines/socketengine_ports.cpp
index 52d799ddf..f7c547d45 100644
--- a/src/socketengines/socketengine_ports.cpp
+++ b/src/socketengines/socketengine_ports.cpp
@@ -77,7 +77,7 @@ PortsEngine::PortsEngine()
{
ServerInstance->Logs->Log("SOCKET", DEFAULT, "ERROR: Can't determine maximum number of open sockets!");
std::cout << "ERROR: Can't determine maximum number of open sockets!" << std::endl;
- ServerInstance->Exit(EXIT_STATUS_SOCKETENGINE);
+ ServerInstance->QuickExit(EXIT_STATUS_SOCKETENGINE);
}
EngineHandle = port_create();
@@ -87,7 +87,7 @@ PortsEngine::PortsEngine()
ServerInstance->Logs->Log("SOCKET",SPARSE,"ERROR: This is a fatal error, exiting now.");
std::cout << "ERROR: Could not initialize socket engine: " << strerror(errno) << std::endl;
std::cout << "ERROR: This is a fatal error, exiting now." << std::endl;
- ServerInstance->Exit(EXIT_STATUS_SOCKETENGINE);
+ ServerInstance->QuickExit(EXIT_STATUS_SOCKETENGINE);
}
CurrentSetSize = 0;