diff --git a/WHATSNEW b/WHATSNEW index c6c27fc6c..b970db53c 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -119,6 +119,10 @@ Fixed bugs: s that used the prefix or fullpath attributes. Bugzilla Report 49605. + * If forked, after finished was still reading the input stream + for a bunch of characters, then stealing them from a following . + Bugzilla Report 49119. + Other changes: -------------- diff --git a/src/main/org/apache/tools/ant/taskdefs/PumpStreamHandler.java b/src/main/org/apache/tools/ant/taskdefs/PumpStreamHandler.java index 573f40679..049023194 100644 --- a/src/main/org/apache/tools/ant/taskdefs/PumpStreamHandler.java +++ b/src/main/org/apache/tools/ant/taskdefs/PumpStreamHandler.java @@ -257,7 +257,7 @@ public class PumpStreamHandler implements ExecuteStreamHandler { /*protected*/ StreamPumper createInputPump(InputStream is, OutputStream os, boolean closeWhenExhausted) { StreamPumper pumper = new StreamPumper(is, os, closeWhenExhausted, - false); + true); pumper.setAutoflush(true); return pumper; }