From 72823b07812ff12b8cabaa9238eca2d54dd61475 Mon Sep 17 00:00:00 2001 From: markt Date: Wed, 30 Dec 2009 10:45:34 +0000 Subject: [PATCH] Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48454 Give the stderr reader a chance to finish before terminating the CGI process. This avoids "Bad file descriptor" errors. The period to wait is configurable. Based on a patch by Markus Grieder git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@894580 13f79535-47bb-0310-9956-ffa450edef68 --- conf/web.xml | 4 ++++ java/org/apache/catalina/servlets/CGIServlet.java | 29 +++++++++++++++++++---- webapps/docs/cgi-howto.xml | 3 +++ 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/conf/web.xml b/conf/web.xml index 72aaac6f5..9a0f42673 100644 --- a/conf/web.xml +++ b/conf/web.xml @@ -301,6 +301,10 @@ + + + +