check rlimit _after_ reading config file, so that if 'dumpcore' is specified there it will take effect

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8114 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Kevin P. Fleming 20 years ago
parent f9f9769502
commit 97ef58e4eb

@ -2129,6 +2129,10 @@ int main(int argc, char *argv[])
}
}
if (ast_opt_console && !option_verbose)
ast_verbose("[ Reading Master Configuration ]");
ast_readconfig();
if (ast_opt_dump_core) {
struct rlimit l;
memset(&l, 0, sizeof(l));
@ -2139,10 +2143,6 @@ int main(int argc, char *argv[])
}
}
if (ast_opt_console && !option_verbose)
ast_verbose("[ Reading Master Configuration ]");
ast_readconfig();
if ((!rungroup) && !ast_strlen_zero(ast_config_AST_RUN_GROUP))
rungroup = ast_config_AST_RUN_GROUP;
if ((!runuser) && !ast_strlen_zero(ast_config_AST_RUN_USER))

Loading…
Cancel
Save