On Tue, Mar 9, 2010 at 12:45 AM, <mt...@apache.org> wrote:

> Author: mturk
> Date: Mon Mar  8 11:45:37 2010
> New Revision: 920281
>
> URL: http://svn.apache.org/viewvc?rev=920281&view=rev
> Log:
> Use StringCbPrintf instead sprintf_s and use existing logger for logging
> new rotation file name
>
> Modified:
>    tomcat/jk/trunk/native/iis/jk_isapi_plugin.c
>
>     /* Close the current log file if required, and the effective log file
> name has changed */
>     if (log_open && strncmp(log_file_name, log_file_effective,
> strlen(log_file_name)) != 0) {
> -        FILE* lf = ((jk_file_logger_t* )logger->logger_private)->logfile;
> -        fprintf_s(lf, "Log rotated to %s\r\n", log_file_name);
> -        fflush(lf);
> -
> +        jk_log(logger, JK_LOG_INFO, "Log rotated to %s", log_file_name);
>         rc = jk_close_file_logger(&logger);
>         log_open = JK_FALSE;
>     }
>
>
-1
This causes an infinite loop (jk_log -> iis_log_to_file -> rotate_log_file
-> init_logger)

Reply via email to