guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Ludovic Courtès
Subject: 54/118: build-remote.pl: Don't keep a shell process around
Date: Tue, 19 May 2015 14:45:37 +0000

civodul pushed a commit to branch nix
in repository guix.

commit b2e0293f022123b11759dfd498d4eff72233d3f7
Author: Eelco Dolstra <address@hidden>
Date:   Sat Jul 12 00:43:28 2014 +0200

    build-remote.pl: Don't keep a shell process around
---
 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 84bff5c..3bcbabe 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]