commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel McCance (JIRA)" <>
Subject [jira] [Created] (EXEC-68) Watchdog kills process immediately if timeout is too large
Date Mon, 22 Oct 2012 17:06:11 GMT
Joel McCance created EXEC-68:

             Summary: Watchdog kills process immediately if timeout is too large
                 Key: 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
            Reporter: Joel McCance
            Priority: Minor

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:

DefaultExecutor executor = new DefaultExecutor();
ExecuteWatchdog watchdog = new ExecuteWatchdog(Long.MAX_VALUE);

executor.execute(cmd); // Where `cmd` could be any valid command.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message