aboutsummaryrefslogtreecommitdiffstats
path: root/ulri
diff options
context:
space:
mode:
Diffstat (limited to 'ulri')
-rwxr-xr-xulri7
1 files changed, 5 insertions, 2 deletions
diff --git a/ulri b/ulri
index 9b7c870..69b9ff2 100755
--- a/ulri
+++ b/ulri
@@ -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
#