[
https://issues.apache.org/jira/browse/EXEC-68?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary Gregory updated EXEC-68:
-----------------------------
Fix Version/s: (was: 1.1.1)
1.2
> Watchdog kills process immediately if timeout is too large
> ----------------------------------------------------------
>
> Key: EXEC-68
> URL: https://issues.apache.org/jira/browse/EXEC-68
> Project: Commons Exec
> Issue Type: Bug
> Affects Versions: 1.1, 1.1.1
> Environment: Should exist for all platforms, but specifically
> identified on Windows 7.
> Reporter: Joel McCance
> Priority: Minor
> Fix For: 1.2
>
> Attachments: EXEC-68.patch
>
>
> When using the ExecuteWatchdog with a very large timeout (e.g.,
> Long.MAX_VALUE), the Watchdog immediately destroys the process instead of
> waiting for the duration of the timeout. For example, the following code
> snippet would continue immediately:
> {code}
> DefaultExecutor executor = new DefaultExecutor();
> ExecuteWatchdog watchdog = new ExecuteWatchdog(Long.MAX_VALUE);
> executor.setWatchdog(watchdog);
> executor.execute(cmd); // Where `cmd` could be any valid command.
> {code}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)