File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
java/src/org/openqa/selenium/os Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -198,10 +198,13 @@ public ExternalProcess start() throws UncheckedIOException {
198
198
199
199
new Thread (
200
200
() -> {
201
+ // copyOutputTo might be system.out or system.err, do not to close
202
+ OutputStream output = new MultiOutputStream (circular , copyOutputTo );
203
+ // closing the InputStream does somehow disturb the process, do not to close
204
+ InputStream input = process .getInputStream ();
201
205
// use the CircularOutputStream as mandatory, we know it will never raise a
202
206
// IOException
203
- try (InputStream input = process .getInputStream ();
204
- OutputStream output = new MultiOutputStream (circular , copyOutputTo )) {
207
+ try {
205
208
// we must read the output to ensure the process will not lock up
206
209
input .transferTo (output );
207
210
} catch (IOException ex ) {
You can’t perform that action at this time.
0 commit comments