summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-12-08 21:41:56 +0000
committerPeter Powell <petpow@saberuk.com>2019-12-08 21:41:56 +0000
commit01328257ff30946af870d2c7665802949b5dfd78 (patch)
tree9fb2b705d64685ba5e2209dda1179d8a312e3e1f /src
parent0dd7eaf63d2c55fa30f5eb4422b780a0f7ed4442 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp3
1 files changed, 1 insertions, 2 deletions
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
*/