summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-04 05:42:33 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-04 05:42:33 +0000
commit0fb892afc919bec668f6aa24ca984e663e38955c (patch)
treeef27674b7c1e5cab53b589f2162a83d2f593bf59 /src
parent1948b0ac2804166261e4ad4d4b8722a4def84135 (diff)
Forward port the removal of -nolimit (doesn't seem to be in the current command line stuff regardless?)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3815 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/inspircd_io.cpp25
1 files changed, 11 insertions, 14 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp
index 3ffa248a1..9e5f18706 100644
--- a/src/inspircd_io.cpp
+++ b/src/inspircd_io.cpp
@@ -52,7 +52,7 @@ ServerConfig::ServerConfig()
*CustomVersion = *motd = *rules = *PrefixQuit = *DieValue = *DNSServer = '\0';
*OperOnlyStats = *ModPath = *MyExecutable = *DisabledCommands = *PID = '\0';
log_file = NULL;
- OperSpyWhois = nofork = HideBans = HideSplits = unlimitcore = false;
+ OperSpyWhois = nofork = HideBans = HideSplits = false;
AllowHalfop = true;
dns_timeout = DieDelay = 5;
MaxTargets = 20;
@@ -901,20 +901,17 @@ bool DaemonSeed()
umask (007);
printf("InspIRCd Process ID: \033[1;32m%lu\033[0m\n",(unsigned long)getpid());
- if (Config->unlimitcore)
+ rlimit rl;
+ if (getrlimit(RLIMIT_CORE, &rl) == -1)
{
- rlimit rl;
- if (getrlimit(RLIMIT_CORE, &rl) == -1)
- {
- log(DEFAULT,"Failed to getrlimit()!");
- return false;
- }
- else
- {
- rl.rlim_cur = rl.rlim_max;
- if (setrlimit(RLIMIT_CORE, &rl) == -1)
- log(DEFAULT,"setrlimit() failed, cannot increase coredump size.");
- }
+ log(DEFAULT,"Failed to getrlimit()!");
+ return false;
+ }
+ else
+ {
+ rl.rlim_cur = rl.rlim_max;
+ if (setrlimit(RLIMIT_CORE, &rl) == -1)
+ log(DEFAULT,"setrlimit() failed, cannot increase coredump size.");
}
return true;