tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28469] - stderr is closed when it is used by jk_logger_file.c
Date Tue, 01 Jun 2004 09:02:46 GMT
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


Mime
View raw message