I'm a little confused about why the code example <https://github.com/apache/commons-exec/blob/4055e401ef7e4ad763cc69b892135b449baf0f13/src/main/java/org/apache/commons/exec/ExecuteWatchdog.java#L32-L34> says to check executor.isFailure(exitValue) to see if the process was killed by the watchdog. Since the only way that watchdog.killedProcess())could ever return true, why would the extra exit status be necessary? It seems to me that just checking watchdog.killedProcess() by itself would be sufficient - or am I missing something here?

Thanks,

Carsten

Reply via email to