set RLIMIT_CORE
This commit is contained in:
parent
7cd4658101
commit
6c6071f30b
1 changed files with 6 additions and 0 deletions
|
@ -140,6 +140,7 @@ int main(int argc, char **argv)
|
|||
desc.add_options()
|
||||
("help,h", "help")
|
||||
("no-daemonize,n", "Do not run spectrum as daemon")
|
||||
("no-debug,d", "Create coredumps on crash")
|
||||
("jid,j", boost::program_options::value<std::string>(&jid)->default_value(""), "Specify JID of transport manually")
|
||||
("config", boost::program_options::value<std::string>(&config_file)->default_value(""), "Config file")
|
||||
;
|
||||
|
@ -268,6 +269,11 @@ int main(int argc, char **argv)
|
|||
}
|
||||
setrlimit(RLIMIT_CORE, &limit);
|
||||
}
|
||||
|
||||
struct rlimit limit;
|
||||
limit.rlim_max = RLIM_INFINITY;
|
||||
limit.rlim_cur = RLIM_INFINITY;
|
||||
setrlimit(RLIMIT_CORE, &limit);
|
||||
#endif
|
||||
|
||||
Swift::SimpleEventLoop eventLoop;
|
||||
|
|
Loading…
Add table
Reference in a new issue