diff options
author | Marcelo Leitner <mrl@mandriva.com> | 2007-06-26 17:50:45 +0000 |
---|---|---|
committer | Marcelo Leitner <mrl@mandriva.com> | 2007-06-26 17:50:45 +0000 |
commit | a63134e12a8acc3b05b7faadaae3dcb3c3795ad5 (patch) | |
tree | fe8162cb7cc8ce12ddc9946ffdceff8abd877192 /ulri | |
parent | 995b322f54b6ef4cb737e76dbc29ab202bb90a7f (diff) | |
download | iurt-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-x | ulri | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 # |