[asterisk-commits] tilghman: trunk r81387 - /trunk/main/logger.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Aug 30 12:51:46 CDT 2007
Author: tilghman
Date: Thu Aug 30 12:51:46 2007
New Revision: 81387
URL: http://svn.digium.com/view/asterisk?view=rev&rev=81387
Log:
Always force reread of the config when we're rotating the log file (closes issue #10598)
Modified:
trunk/main/logger.c
Modified: trunk/main/logger.c
URL: http://svn.digium.com/view/asterisk/trunk/main/logger.c?view=diff&rev=81387&r1=81386&r2=81387
==============================================================================
--- trunk/main/logger.c (original)
+++ trunk/main/logger.c Thu Aug 30 12:51:46 2007
@@ -574,7 +574,7 @@
filesize_reload_needed = 0;
- init_logger_chain(1, 1);
+ init_logger_chain(rotate ? 0 : 1 /* reload */, 1 /* locked */);
if (logfiles.event_log) {
snprintf(old, sizeof(old), "%s/%s", ast_config_AST_LOG_DIR, EVENTLOG);
@@ -894,7 +894,7 @@
ast_mkdir(ast_config_AST_LOG_DIR, 0777);
/* create log channels */
- init_logger_chain(0, 0);
+ init_logger_chain(0 /* reload */, 0 /* locked */);
/* create the eventlog */
if (logfiles.event_log) {
More information about the asterisk-commits
mailing list