Simplify state handling in rotatelogs, fixing -L support in the case
where open() fails for a new log file. * support/rotatelogs.c (struct logfile): New structure. (struct rotate_status): Store only current logfile state here, using struct logfile. (close_logfile): Rename from closeFile; assume a valid logfile structure is passed in; simplify to use stored filename. (checkRotate, main): Adjust for new structure. (post_rotate): Adjust, move linkfile handling here. (doRotate): Simplify. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1140138 13f79535-47bb-0310-9956-ffa450edef68
parent
b09aa54e
Please register or sign in to comment