git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@676944
13f79535-47bb-0310-9956-
ffa450edef68
}
} //replacement for Process.waitFor()
- // Close the output stream if used
- if (cgiOutput != null) {
- cgiOutput.close();
- }
}
catch (IOException e){
log ("Caught exception " + e);
throw e;
}
finally{
+ // Close the output stream if used
+ if (cgiOutput != null) {
+ try {
+ cgiOutput.close();
+ } catch (IOException ioe) {
+ log ("Exception closing output stream " + ioe);
+ }
+ }
if (debug > 4) {
log ("Running finally block");
}