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