[asterisk-commits] trunk - r8114 /trunk/asterisk.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Jan 16 16:52:52 MST 2006


Author: kpfleming
Date: Mon Jan 16 17:52:51 2006
New Revision: 8114

URL: http://svn.digium.com/view/asterisk?rev=8114&view=rev
Log:
check rlimit _after_ reading config file, so that if 'dumpcore' is specified there it will take effect

Modified:
    trunk/asterisk.c

Modified: trunk/asterisk.c
URL: http://svn.digium.com/view/asterisk/trunk/asterisk.c?rev=8114&r1=8113&r2=8114&view=diff
==============================================================================
--- trunk/asterisk.c (original)
+++ trunk/asterisk.c Mon Jan 16 17:52:51 2006
@@ -2129,6 +2129,10 @@
 		}
 	}
 
+	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));
@@ -2138,10 +2142,6 @@
 			ast_log(LOG_WARNING, "Unable to disable core size resource limit: %s\n", strerror(errno));
 		}
 	}
-
-	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;



More information about the asterisk-commits mailing list