jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1544771 - /jmeter/trunk/src/jorphan/org/apache/jorphan/exec/SystemCommand.java
Date Sat, 23 Nov 2013 12:00:07 GMT
Author: sebb
Date: Sat Nov 23 12:00:06 2013
New Revision: 1544771

URL: http://svn.apache.org/r1544771
Log:
Ensure streams are closed for normal case

Modified:
    jmeter/trunk/src/jorphan/org/apache/jorphan/exec/SystemCommand.java

Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/exec/SystemCommand.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/exec/SystemCommand.java?rev=1544771&r1=1544770&r2=1544771&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/exec/SystemCommand.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/exec/SystemCommand.java Sat Nov 23 12:00:06
2013
@@ -174,6 +174,9 @@ public class SystemCommand {
                 swin.interrupt(); // the copying thread won't generally detect EOF
                 swin.join();
             }
+            procErr.close();
+            procIn.close();
+            procOut.close();
             return exitVal;
         } finally {
             if(proc != null) {



Mime
View raw message