aboutsummaryrefslogtreecommitdiffstats
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2019-12-08 21:41:56 +0000
committerGravatar Peter Powell2019-12-08 21:41:56 +0000
commit01328257ff30946af870d2c7665802949b5dfd78 (patch)
tree9fb2b705d64685ba5e2209dda1179d8a312e3e1f /src/inspircd.cpp
parentCall RecoverFromFork from ForkIntoBackground. (diff)
downloadinspircd++-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.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
*/