diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-16 23:52:51 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-16 23:52:51 +0000 |
commit | f9beeb83638a88a3dde6b877e929225870613c75 (patch) | |
tree | 22835d95b692bfeb1576a04072b5827b1f9386a8 /asterisk.c | |
parent | a482b16b4ead520ca4e436bedc4314adf723b055 (diff) |
check rlimit _after_ reading config file, so that if 'dumpcore' is specified there it will take effect
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8114 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'asterisk.c')
-rw-r--r-- | asterisk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/asterisk.c b/asterisk.c index ca75659ed..f9e8716f7 100644 --- a/asterisk.c +++ b/asterisk.c @@ -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)) |