process.getErrorStream(), maxCaptureSize, definition.isSkipStdError());
processStandardErrorThread.start();
// If timeout is set start watchdog thread. It terminates process thread after timeout exceeds
if (definition.getTimeoutMs() > 0) {
ProcessTimeoutThread processTimeoutThread = new ProcessTimeoutThread(
processExecutionThread, definition.getTimeoutMs());
processTimeoutThread.start();
}
// Wait while process thread exits
processExecutionThread.join();