You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/06/01 11:02:46 UTC

DO NOT REPLY [Bug 28469] - stderr is closed when it is used by jk_logger_file.c

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28469>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28469

stderr is closed when it is used by jk_logger_file.c





------- Additional Comments From max@linuxtag.org  2004-06-01 09:02 -------
Explanation: apr_file_open_stderr does not dup() the system stderr filehandle
(fd 2), it just creates a new APR wrapper for fd 2. If you close the APR handle,
the original system stderr is closed, and all APR wrappers for fd 2 become
invalid. This might be considered an APR bug, because the abstraction offered by
APR is not consistent here.

I'll attach my solution later today when I'm at my office.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org