aboutsummaryrefslogtreecommitdiffstats
path: root/ulri
diff options
context:
space:
mode:
authorMarcelo Leitner <mrl@mandriva.com>2007-06-26 17:50:45 +0000
committerMarcelo Leitner <mrl@mandriva.com>2007-06-26 17:50:45 +0000
commita63134e12a8acc3b05b7faadaae3dcb3c3795ad5 (patch)
treefe8162cb7cc8ce12ddc9946ffdceff8abd877192 /ulri
parent995b322f54b6ef4cb737e76dbc29ab202bb90a7f (diff)
downloadiurt-a63134e12a8acc3b05b7faadaae3dcb3c3795ad5.tar
iurt-a63134e12a8acc3b05b7faadaae3dcb3c3795ad5.tar.gz
iurt-a63134e12a8acc3b05b7faadaae3dcb3c3795ad5.tar.bz2
iurt-a63134e12a8acc3b05b7faadaae3dcb3c3795ad5.tar.xz
iurt-a63134e12a8acc3b05b7faadaae3dcb3c3795ad5.zip
- Improve compilation start timeout handling.
Diffstat (limited to 'ulri')
-rwxr-xr-xulri9
1 files changed, 8 insertions, 1 deletions
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
#