[asterisk-commits] russell: branch 1.6.1 r156168 - in /branches/1.6.1: ./ main/asterisk.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Nov 12 11:38:44 CST 2008
Author: russell
Date: Wed Nov 12 11:38:43 2008
New Revision: 156168
URL: http://svn.digium.com/view/asterisk?view=rev&rev=156168
Log:
Merged revisions 156166 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r156166 | russell | 2008-11-12 11:38:20 -0600 (Wed, 12 Nov 2008) | 15 lines
Merged revisions 156164 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r156164 | russell | 2008-11-12 11:29:52 -0600 (Wed, 12 Nov 2008) | 7 lines
Move the sanity check that makes sure "always fork" is not set along with the
console option to be after the code that reads options from asterisk.conf.
This resolves a situation where Asterisk can start taking up 100% when
misconfigured.
(Thanks to Bryce Porter (x86 on IRC) for letting me log in to his system to
figure out what was causing the 100% CPU problem.)
........
................
Modified:
branches/1.6.1/ (props changed)
branches/1.6.1/main/asterisk.c
Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.1/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.1/main/asterisk.c?view=diff&rev=156168&r1=156167&r2=156168
==============================================================================
--- branches/1.6.1/main/asterisk.c (original)
+++ branches/1.6.1/main/asterisk.c Wed Nov 12 11:38:43 2008
@@ -3054,11 +3054,6 @@
if (ast_opt_console && !option_verbose)
ast_verbose("[ Booting...\n");
- if (ast_opt_always_fork && (ast_opt_remote || ast_opt_console)) {
- ast_log(LOG_WARNING, "'alwaysfork' is not compatible with console or remote console mode; ignored\n");
- ast_clear_flag(&ast_options, AST_OPT_FLAG_ALWAYS_FORK);
- }
-
/* For remote connections, change the name of the remote connection.
* We do this for the benefit of init scripts (which need to know if/when
* the main asterisk process has died yet). */
@@ -3069,8 +3064,10 @@
}
}
- if (ast_opt_console && !option_verbose)
+ if (ast_opt_console && !option_verbose) {
ast_verbose("[ Reading Master Configuration ]\n");
+ }
+
ast_readconfig();
if (ast_opt_remote && remotesock != NULL)
@@ -3078,6 +3075,11 @@
if (!ast_language_is_prefix && !ast_opt_remote)
ast_log(LOG_WARNING, "The 'languageprefix' option in asterisk.conf is deprecated; in a future release it will be removed, and your sound files will need to be organized in the 'new style' language layout.\n");
+
+ if (ast_opt_always_fork && (ast_opt_remote || ast_opt_console)) {
+ ast_log(LOG_WARNING, "'alwaysfork' is not compatible with console or remote console mode; ignored\n");
+ ast_clear_flag(&ast_options, AST_OPT_FLAG_ALWAYS_FORK);
+ }
if (ast_opt_dump_core) {
struct rlimit l;
More information about the asterisk-commits
mailing list