Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 79562 invoked from network); 1 Jun 2004 12:30:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Jun 2004 12:30:20 -0000 Received: (qmail 70088 invoked by uid 500); 1 Jun 2004 12:29:38 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 69772 invoked by uid 500); 1 Jun 2004 12:29:33 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 69481 invoked by uid 99); 1 Jun 2004 12:29:27 -0000 Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.27.1) with SMTP; Tue, 01 Jun 2004 05:29:27 -0700 Received: (qmail 10476 invoked by uid 50); 1 Jun 2004 12:30:19 -0000 Date: 1 Jun 2004 12:30:19 -0000 Message-ID: <20040601123019.10475.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 28469] - stderr is closed when it is used by jk_logger_file.c X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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 12:30 ------- I have now attached a patch which works around the problem - it tests whether the previous name was "stderr" and simply doesn't close stderr handles. I just wrote down that patch without testing... just an idea to start with. Previously, I have commented out the apr_file_close line in jk2_logger_file_init. Object destruction and freeing memory doesn't really work in jk2 anyways (ever tried to run a small JK2 test program with dmalloc or similar heap debuggers? For some classes, there aren't even destructors available.. - email me if you want my help with the code cleanup required here) --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org