diff options
author | Simon Rettberg | 2015-09-29 18:37:54 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-09-29 18:37:54 +0200 |
commit | 7cb0f7c28b96537d45ea9617f6d8ab06bd50e752 (patch) | |
tree | 4ecc85d78495d93cf1b4517845ba203099814a06 | |
parent | Handle some uncaught runtime errors, fix race condition (diff) | |
download | taskman-lite-7cb0f7c28b96537d45ea9617f6d8ab06bd50e752.tar.gz taskman-lite-7cb0f7c28b96537d45ea9617f6d8ab06bd50e752.tar.xz taskman-lite-7cb0f7c28b96537d45ea9617f6d8ab06bd50e752.zip |
[SystemCommandTask] Return 124 as exit code on timeout
-rw-r--r-- | api/src/main/java/org/openslx/taskmanager/api/SystemCommandTask.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/main/java/org/openslx/taskmanager/api/SystemCommandTask.java b/api/src/main/java/org/openslx/taskmanager/api/SystemCommandTask.java index d5a3b64..7b67c12 100644 --- a/api/src/main/java/org/openslx/taskmanager/api/SystemCommandTask.java +++ b/api/src/main/java/org/openslx/taskmanager/api/SystemCommandTask.java @@ -96,7 +96,7 @@ public abstract class SystemCommandTask extends AbstractTask stderr.start(); // Wait for everything - int retval = -1; + int retval = 124; // Default to 124, which is what the timeout util does if ( this.timeoutSeconds <= 0 ) { retval = process.waitFor(); } else { |