From 01328257ff30946af870d2c7665802949b5dfd78 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 8 Dec 2019 21:41:56 +0000 Subject: Increase the core dump size earlier in the process lifetime. According to `man 2 getrlimit` resource limits are inherited by the child when a process forks. --- src/inspircd.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index af9013515..609c0b8b6 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -304,6 +304,7 @@ InspIRCd::InspIRCd(int argc, char** argv) UpdateTime(); this->startup_time = TIME.tv_sec; + IncreaseCoreDumpSize(); SeedRng(TIME); SocketEngine::Init(); @@ -465,8 +466,6 @@ InspIRCd::InspIRCd(int argc, char** argv) std::cout << "InspIRCd Process ID: " << con_green << getpid() << con_reset << std::endl; - IncreaseCoreDumpSize(); - /* During startup we read the configuration now, not in * a seperate thread */ -- cgit v1.2.3