logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: zip/gzip rollover not working
Date Fri, 18 Jan 2008 17:29:20 GMT

On Jan 18, 2008, at 7:13 AM, Christoph Macheiner wrote:

> in ZipCompressAction::execute() and GZCompressAction::execute(), an
> attempt is made to redirect the child's error stream to this  
> processes'
> error stream. on failure, an exception is thrown. now (at least on
> windows systems) a process does not necessarily have an error stream  
> (at
> least not initially, or when the redirection is closed eg. during
> shutdown), which causes the appender to never rollover. i think this
> should be fixed. apr_file_open_stderr() return APR_EINVAL when it  
> cannot
> obtain the handle but the os returns success, so this could be  
> checked.
> otherwise i would need to redirect stderr in all applications (and  
> leave
> it open until the last log message) which does not seem to be right at
> all.
> (and yes, i am using the latest svn head)
> thanks, christoph

Thanks for the report.  In rev 613208, I've changed the code so that a  
non-success return from apr_file_open_stderr does not throw an  
exception, but just skips setting the child processes error stream.   
Would appreciate your checking whether that addresses your concern,  
otherwise please suggest a patch.

View raw message