diff options
author | Peter Powell <petpow@saberuk.com> | 2019-12-08 21:41:56 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-12-08 21:41:56 +0000 |
commit | 01328257ff30946af870d2c7665802949b5dfd78 (patch) | |
tree | 9fb2b705d64685ba5e2209dda1179d8a312e3e1f /src | |
parent | 0dd7eaf63d2c55fa30f5eb4422b780a0f7ed4442 (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.cpp | 3 |
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 */ |