diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-07-11T22·43+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-07-11T22·43+0200 |
commit | b2e0293f022123b11759dfd498d4eff72233d3f7 (patch) | |
tree | 39658341ddd8bfb43e123a9df16620e5a3f3d927 /perl/lib/Nix/SSH.pm | |
parent | a00a98548e994d1ea258e14793c7bcd8ea56cfdf (diff) |
build-remote.pl: Don't keep a shell process around
Diffstat (limited to 'perl/lib/Nix/SSH.pm')
-rw-r--r-- | perl/lib/Nix/SSH.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl/lib/Nix/SSH.pm b/perl/lib/Nix/SSH.pm index 84bff5c7850c..3bcbabe981d6 100644 --- a/perl/lib/Nix/SSH.pm +++ b/perl/lib/Nix/SSH.pm @@ -113,7 +113,8 @@ sub connectToRemoteNix { # Start ‘nix-store --serve’ on the remote host. my ($from, $to); - my $pid = open2($from, $to, "ssh $sshHost @{$sshOpts} nix-store --serve --write $extraFlags"); + # FIXME: don't start a shell, start ssh directly. + my $pid = open2($from, $to, "exec ssh $sshHost @{$sshOpts} nix-store --serve --write $extraFlags"); # Do the handshake. my $SERVE_MAGIC_1 = 0x390c9deb; # FIXME |