diff options
| author | 2019-12-08 21:41:56 +0000 | |
|---|---|---|
| committer | 2019-12-08 21:41:56 +0000 | |
| commit | 01328257ff30946af870d2c7665802949b5dfd78 (patch) | |
| tree | 9fb2b705d64685ba5e2209dda1179d8a312e3e1f /src/inspircd.cpp | |
| parent | Call RecoverFromFork from ForkIntoBackground. (diff) | |
| download | inspircd++-01328257ff30946af870d2c7665802949b5dfd78.tar.gz inspircd++-01328257ff30946af870d2c7665802949b5dfd78.tar.bz2 inspircd++-01328257ff30946af870d2c7665802949b5dfd78.zip | |
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/inspircd.cpp')
| -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 */ |
