mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-04 05:15:22 +00:00 
			
		
		
		
	do rlimit check _after_ reading config file, in case 'dumpcore' is specified there
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@8112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		@@ -2138,6 +2138,10 @@ int main(int argc, char *argv[])
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (option_console && !option_verbose) 
 | 
			
		||||
		ast_verbose("[ Reading Master Configuration ]");
 | 
			
		||||
	ast_readconfig();
 | 
			
		||||
 | 
			
		||||
	if (option_dumpcore) {
 | 
			
		||||
		struct rlimit l;
 | 
			
		||||
		memset(&l, 0, sizeof(l));
 | 
			
		||||
@@ -2148,10 +2152,6 @@ int main(int argc, char *argv[])
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (option_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))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user