aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-02 18:48:43 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-02 18:48:43 +0000
commit4262e5656cfe1598ad9e7b02276373309da473f9 (patch)
treeb103eb1b6346ef10e6533389af436c76b422224f /main
parent9401efd079d462c69e2e0b21a818c2980815b446 (diff)
Merged revisions 191775 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r191775 | kpfleming | 2009-05-02 20:39:48 +0200 (Sat, 02 May 2009) | 5 lines Fix an error in queue_log file rotation optimization code This code was copy-and-pasted without properly changing references to event_rotate into queue_rotate, so under some conditions the log rotation would rotate queue_log even though it was not necessary. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@191779 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/logger.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/logger.c b/main/logger.c
index 163548908..d62d3ebb7 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -623,14 +623,13 @@ static int reload_logger(int rotate)
fclose(qlog);
qlog = NULL;
} else
- event_rotate = 0;
+ queue_rotate = 0;
} else {
fclose(qlog);
qlog = NULL;
}
} else
queue_rotate = 0;
- qlog = NULL;
ast_mkdir(ast_config_AST_LOG_DIR, 0777);