From a63134e12a8acc3b05b7faadaae3dcb3c3795ad5 Mon Sep 17 00:00:00 2001 From: Marcelo Leitner Date: Tue, 26 Jun 2007 17:50:45 +0000 Subject: - Improve compilation start timeout handling. --- ulri | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ulri') diff --git a/ulri b/ulri index 4d7eda4..65711e1 100755 --- a/ulri +++ b/ulri @@ -648,8 +648,15 @@ foreach my $prefix (sort keys %pkg_tree) { ssh($remote, "$cmd $pkgs &> $temp &"); # wait 10 seconds or until we have the log file + # plus 20 seconds if it timeouts. # - last if check_file_timeout($temp, 10); + if (check_file_timeout($temp, 10)) { + plog('WARN', "Timeout waiting for building start. Waiting more 20s."); + if ((check_file_timeout($temp, 20)) { + plog('WARN', "Timeout! Abandoning the build."); + last; + } + } # get remote PID from log file # -- cgit v1.2.1