summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-11 12:36:37 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-11 12:36:37 +0000
commitf4046a61e7fb5e017a19a0308bfa42fa5abe68d5 (patch)
tree36b4ef551f8fb0a3c92964770c5d9e1b64ad6d60 /src/inspircd.cpp
parent5f462cf84e2d28df31df7ba081f9f0822cec9e90 (diff)
Made setrlimit a commandline option
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1042 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index d69aa6a1e..d784c0925 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -103,6 +103,7 @@ std::vector<int> fd_reap;
extern int MODCOUNT;
int openSockfd[MAXSOCKS];
bool nofork = false;
+bool unlimitcore = false;
time_t TIME = time(NULL);
@@ -2181,6 +2182,9 @@ int main(int argc, char **argv)
if (!strcmp(argv[i],"-wait")) {
sleep(6);
}
+ if (!strcmp(argv[i],"-nolimit")) {
+ unlimitcore = true;
+ }
}
}
strlcpy(MyExecutable,argv[0],MAXBUF);