in src/main/java/org/apache/commons/exec/ExecuteWatchdog.java [83:95]
public ExecuteWatchdog(final long timeout) {
this.killedProcess = false;
this.watch = false;
this.hasWatchdog = timeout != INFINITE_TIMEOUT;
this.processStarted = false;
if (this.hasWatchdog) {
this.watchdog = new Watchdog(timeout);
this.watchdog.addTimeoutObserver(this);
}
else {
this.watchdog = null;
}
}