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

View file

@ -113,7 +113,8 @@ sub connectToRemoteNix {
# Start nix-store --serve on the remote host. # Start nix-store --serve on the remote host.
my ($from, $to); 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. # Do the handshake.
my $SERVE_MAGIC_1 = 0x390c9deb; # FIXME my $SERVE_MAGIC_1 = 0x390c9deb; # FIXME