aboutsummaryrefslogtreecommitdiffstats
path: root/ulri
diff options
context:
space:
mode:
Diffstat (limited to 'ulri')
-rwxr-xr-xulri5
1 files changed, 3 insertions, 2 deletions
diff --git a/ulri b/ulri
index f632134..8f6ae1d 100755
--- a/ulri
+++ b/ulri
@@ -362,7 +362,8 @@ foreach my $prefix (keys %pkg_tree) {
my $proc_state;
if (!$fail) {
- chomp($proc_state = sout($remote, "ps h -o state $pid"));
+ # Need to differenciate process not running with failure to ssh
+ chomp($proc_state = sout($remote, "ps h -o state $pid || echo NOT_RUNNING"));
}
my $seconds = time()-$time;
@@ -370,7 +371,7 @@ foreach my $prefix (keys %pkg_tree) {
# Reasons for failure
my $timeout = $seconds > $config->{faildelay};
my $zombie = $proc_state eq 'Z';
- my $ended = !$proc_state;
+ my $ended = $proc_state eq 'NOT_RUNNING';
unless ($success || $later || $fail || $timeout || $zombie || $ended) {
next bot;