[mod_accesslog] update defaults after cycling log

(thx avij)

must update the cached copy of global scope config after cycling log.
Although (accesslog_st *) is modified in-place, the log_access_fd member
of (accesslog_st *) is copied into the cache and must be updated after
cycling logs in the global scope.
This commit is contained in:
Glenn Strauss 2020-10-24 14:38:47 -04:00
parent 61f7d531eb
commit 55fb46f695
1 changed files with 2 additions and 0 deletions

View File

@ -787,6 +787,8 @@ SIGHUP_FUNC(log_access_cycle) {
log_perror(srv->errh, __FILE__, __LINE__,
"cycling access log failed: %s", x->access_logfile->ptr);
}
/*(update p->defaults after cycling log)*/
if (0 == i) p->defaults.log_access_fd = x->log_access_fd;
break;
}
default: