summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/init.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp
index e63f6793b..bcf49f00b 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -419,13 +419,12 @@ void Init(int ac, char **av)
Log(LOG_DEBUG_3) << "Top of fork() process loop";
SocketEngine::Process();
}
- SocketEngine::Shutdown();
exit(return_code);
}
else if (i == -1)
{
Log() << "Error, unable to fork: " << Anope::LastError();
- /* On a successful fork, the parents socket engine shutdown will eat these */
+ nofork = true;
delete sfe;
delete ssc;
}