summaryrefslogtreecommitdiffstats
path: root/api/src
diff options
context:
space:
mode:
authorSimon Rettberg2015-09-29 18:37:54 +0200
committerSimon Rettberg2015-09-29 18:37:54 +0200
commit7cb0f7c28b96537d45ea9617f6d8ab06bd50e752 (patch)
tree4ecc85d78495d93cf1b4517845ba203099814a06 /api/src
parentHandle some uncaught runtime errors, fix race condition (diff)
downloadtaskman-lite-7cb0f7c28b96537d45ea9617f6d8ab06bd50e752.tar.gz
taskman-lite-7cb0f7c28b96537d45ea9617f6d8ab06bd50e752.tar.xz
taskman-lite-7cb0f7c28b96537d45ea9617f6d8ab06bd50e752.zip
[SystemCommandTask] Return 124 as exit code on timeout
Diffstat (limited to 'api/src')
-rw-r--r--api/src/main/java/org/openslx/taskmanager/api/SystemCommandTask.java2
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 {