diff --git a/src/protocol/native/org/apache/jmeter/protocol/system/NativeCommand.java b/src/protocol/native/org/apache/jmeter/protocol/system/NativeCommand.java index 2d444cef26..4f688d4bb4 100644 --- a/src/protocol/native/org/apache/jmeter/protocol/system/NativeCommand.java +++ b/src/protocol/native/org/apache/jmeter/protocol/system/NativeCommand.java @@ -103,6 +103,8 @@ public class NativeCommand { if (stdin != null) { swin = new StreamCopier(new FileInputStream(stdin), proc.getOutputStream()); swin.start(); + } else { + proc.getOutputStream().close(); // ensure the application does not hang if it requests input } int exitVal = proc.waitFor(); diff --git a/xdocs/changes.xml b/xdocs/changes.xml index 117b6fac63..b6c9e044d4 100644 --- a/xdocs/changes.xml +++ b/xdocs/changes.xml @@ -230,6 +230,7 @@ Previously the default was 1, which could cause unexpected additional traffic.