build-remote.pl: Don't keep a shell process around

This commit is contained in:
Eelco Dolstra 2014-07-12 00:43:28 +02:00
parent a00a98548e
commit b2e0293f02
1 changed files with 2 additions and 1 deletions

View File

@ -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