From: Peter Powell Date: Sun, 8 Dec 2019 21:36:19 +0000 (+0000) Subject: Call RecoverFromFork from ForkIntoBackground. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=0dd7eaf63d2c55fa30f5eb4422b780a0f7ed4442;p=user%2Fhenk%2Fcode%2Finspircd.git Call RecoverFromFork from ForkIntoBackground. --- diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 6d8272361..af9013515 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -168,6 +168,7 @@ namespace { setsid(); signal(SIGTERM, InspIRCd::SetSignal); + SocketEngine::RecoverFromFork(); } #endif return true; @@ -465,7 +466,6 @@ InspIRCd::InspIRCd(int argc, char** argv) std::cout << "InspIRCd Process ID: " << con_green << getpid() << con_reset << std::endl; IncreaseCoreDumpSize(); - SocketEngine::RecoverFromFork(); /* During startup we read the configuration now, not in * a seperate thread