in src/main/java/org/apache/commons/exec/PumpStreamHandler.java [176:207]
public void stop() throws IOException {
if (inputStreamPumper != null) {
inputStreamPumper.stopProcessing();
}
stopThread(outputThread, stopTimeout);
stopThread(errorThread, stopTimeout);
stopThread(inputThread, stopTimeout);
if (err != null && err != out) {
try {
err.flush();
} catch (final IOException e) {
final String msg = "Got exception while flushing the error stream : " + e.getMessage();
DebugUtils.handleException(msg, e);
}
}
if (out != null) {
try {
out.flush();
} catch (final IOException e) {
final String msg = "Got exception while flushing the output stream";
DebugUtils.handleException(msg, e);
}
}
if (caught != null) {
throw caught;
}
}