From 7cb0f7c28b96537d45ea9617f6d8ab06bd50e752 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 29 Sep 2015 18:37:54 +0200 Subject: [SystemCommandTask] Return 124 as exit code on timeout --- api/src/main/java/org/openslx/taskmanager/api/SystemCommandTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3-55-g7522