summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-05-10 02:32:13 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-05-10 02:32:13 +0200
commitbe0b9dda31ab42bb2e077751fc75abbc945e407f (patch)
tree07f5345a73201c8a3f59d12f8f77a6f228e75e4e
parent78206f06ecb2f5d6dba85b5f709251030e966f1c (diff)
downloadguix-be0b9dda31ab42bb2e077751fc75abbc945e407f.tar.gz
build-remote.pl: Pass /dev/null as SSH's stdin
Otherwise it will set the parent's stdin to non-blocking mode, causing
the subsequent read of the set of inputs/outputs to fail randomly.
That's insane.
-rwxr-xr-xscripts/build-remote.pl.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build-remote.pl.in b/scripts/build-remote.pl.in
index 6be4c45ebd..dcd8630036 100755
--- a/scripts/build-remote.pl.in
+++ b/scripts/build-remote.pl.in
@@ -197,7 +197,7 @@ REQ: while (1) {
         $hostName = $machine->{hostName};
         last REQ if
             openSSHConnection($hostName) &&
-            system("ssh $hostName @sshOpts nix-builds-inhibited >/dev/null 2>&1") != 0;
+            system("ssh $hostName @sshOpts nix-builds-inhibited < /dev/null > /dev/null 2>&1") != 0;
 
         warn "unable to open SSH connection to $hostName, trying other available machines...\n";
         $machine->{enabled} = 0;