Skip to content

Commit a97663b

Browse files
committed
Don't buffer the output.
We do the buffering ourselves internally.
1 parent 2100ea5 commit a97663b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/laytonsmith/core/functions/Cmdline.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ public Construct exec(final Target t, final Environment environment, Construct..
972972
final CClosure _exit = exit;
973973
final MutableObject<StringBuilder> sbout = new MutableObject(new StringBuilder());
974974
final MutableObject<StringBuilder> sberr = new MutableObject(new StringBuilder());
975-
cmd.setSystemOut(new BufferedOutputStream(new OutputStream() {
975+
cmd.setSystemOut(new OutputStream() {
976976
@Override
977977
public void write(int b) throws IOException {
978978
if(_stdout == null){
@@ -997,8 +997,8 @@ public Object call() throws Exception {
997997
sbout.getObject().append(c);
998998
}
999999
}
1000-
}));
1001-
cmd.setSystemErr(new BufferedOutputStream(new OutputStream() {
1000+
});
1001+
cmd.setSystemErr(new OutputStream() {
10021002
@Override
10031003
public void write(int b) throws IOException {
10041004
if(_stderr == null){
@@ -1023,7 +1023,7 @@ public Object call() throws Exception {
10231023
sberr.getObject().append(c);
10241024
}
10251025
}
1026-
}));
1026+
});
10271027
try {
10281028
cmd.start();
10291029
} catch (IOException ex) {

0 commit comments

Comments
 (0)