summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'client/Scire/Job.pm')
-rw-r--r--client/Scire/Job.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/Scire/Job.pm b/client/Scire/Job.pm
index 913e3de..0b016dc 100644
--- a/client/Scire/Job.pm
+++ b/client/Scire/Job.pm
@@ -62,10 +62,10 @@ sub run {
# called something like is_running() and use WNOHANG instead of blocking
waitpid($pid, 0);
my $status = $?;
- my $exitcode = -1;
- if(WIFEXITED($status)) {
+# my $exitcode = -1;
+# if(WIFEXITED($status)) {
my $exitcode = WEXITSTATUS($status);
- }
+# }
return $exitcode;
} else {
# We redirect STDOUT and STDERR first since the new user may not have
@@ -86,6 +86,7 @@ sub run {
} else {
# XXX: the specified user does not exist. we should really do
# something here
+ exit(-2);
}
}
# XXX: exec() to run our command. our STDOUT and STDERR have been