From: Kevin P. Fleming Date: Sat, 2 May 2009 18:45:56 +0000 (+0000) Subject: Merged revisions 191775 via svnmerge from X-Git-Tag: 1.6.1.3-rc1~282 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95da8d01bb7194d99cb8a1647892e20a3493dee7;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@191777 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/logger.c b/main/logger.c index 25cdfd1ed5..9ab2f63c9f 100644 --- a/main/logger.c +++ b/main/logger.c @@ -619,14 +619,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);