Mailing List Archive

[Bug 8730] - RotateLogs Doesn't
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8730>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8730

RotateLogs Doesn't





------- Additional Comments From wrowe@apache.org 2002-05-22 15:36 -------

First observation... piped logs are NOT using SHELLCMDs. Therefore the
syntax you would want became

CustomLog '|"bin/rotatelogs.exe" "logs/access.log" 86400' combined

As the create process code will deal with any major quotes around an
entire command line string, but only when necessary. In your example,
they were interfering with the tokenization of the command, log name
and interval arguments.

The bug is within APR and rotatelogs... we are not using the correct
semantics for stdin file handling [.someone changed things to do non
blocking reads on file pipes.] Try this from the command line to
reproduce the fact that rotatelogs just doesn't work at this time.

I'm going over the stdin semantics and will follow up. ITMT, I also
notice that all platforms may be broken on line 151 of rotatelogs.c
since beasts like APR_EAGAIN and APR_EINTR may clobber rotatelogs.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org