Browse Source

Close process streams in waitFor(Process).

PR: 28565


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276416 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 21 years ago
parent
commit
08fc138671
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      src/main/org/apache/tools/ant/taskdefs/Execute.java

+ 7
- 0
src/main/org/apache/tools/ant/taskdefs/Execute.java View File

@@ -536,6 +536,13 @@ public class Execute {
setExitValue(process.exitValue());
} catch (InterruptedException e) {
process.destroy();
} finally {
try {
process.getInputStream().close();
process.getOutputStream().close();
process.getErrorStream().close();
} catch (IOException eyeOhEx) {
}
}
}



Loading…
Cancel
Save