in src/main/java/org/apache/commons/exec/ExecuteWatchdog.java [261:275]
public synchronized void start(final Process processToMonitor) {
Objects.requireNonNull(processToMonitor, "processToMonitor");
if (process != null) {
throw new IllegalStateException("Already running.");
}
caught = null;
killedProcess = false;
watch = true;
process = processToMonitor;
processStarted = true;
notifyAll();
if (hasWatchdog) {
watchdog.start();
}
}