diff options
author | Marcelo Leitner <mrl@mandriva.com> | 2007-06-26 18:16:04 +0000 |
---|---|---|
committer | Marcelo Leitner <mrl@mandriva.com> | 2007-06-26 18:16:04 +0000 |
commit | bf1314d97965db358a0faa79ccb03500cfef36d0 (patch) | |
tree | af3960cdc7fcd78d7ac6c79538347e106e2ebdbc /ulri | |
parent | 94cee39014eff1cfec99ce394035e36dc02aa9e9 (diff) | |
download | iurt-bf1314d97965db358a0faa79ccb03500cfef36d0.tar iurt-bf1314d97965db358a0faa79ccb03500cfef36d0.tar.gz iurt-bf1314d97965db358a0faa79ccb03500cfef36d0.tar.bz2 iurt-bf1314d97965db358a0faa79ccb03500cfef36d0.tar.xz iurt-bf1314d97965db358a0faa79ccb03500cfef36d0.zip |
- Enhance job abandoning message.
- Do not redirect stderr to pidfile, otherwise ssh messages will be logged too.
Diffstat (limited to 'ulri')
-rwxr-xr-x | ulri | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -645,7 +645,7 @@ foreach my $prefix (sort keys %pkg_tree) { $cmd =~ s!__MEDIA__!$media_to_add!g; plog('DEBUG', "Build $pkgs"); - ssh($remote, "$cmd $pkgs &> $temp &"); + ssh($remote, "$cmd $pkgs > $temp &"); # wait 10 seconds or until we have the log file # plus 20 seconds if it timeouts. @@ -663,7 +663,10 @@ foreach my $prefix (sort keys %pkg_tree) { my $pid = get_pid_from_file($temp); unlink $temp; plog('DEBUG', "remote pid $pid"); - last unless $pid; + if (!$pid) { + plog('WARN', "pid is unknown, abandoning the build."); + last; + } # create lock file # |