diff options
-rwxr-xr-x | ulri | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |