From 3a2bbe7f8ad7ec8b2896ff5e666b8f5525691c6f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 28 Mar 2009 19:29:55 +0000 Subject: * Simplify communication with the hook a bit (don't use file descriptors 3/4, just use stdin/stderr). --- scripts/build-remote.pl.in | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'scripts/build-remote.pl.in') diff --git a/scripts/build-remote.pl.in b/scripts/build-remote.pl.in index 1c4f974406..91b57d5f24 100755 --- a/scripts/build-remote.pl.in +++ b/scripts/build-remote.pl.in @@ -29,9 +29,7 @@ $maxSilentTime = 0 unless defined $maxSilentTime; sub sendReply { my $reply = shift; - open OUT, ">&3" or die; - print OUT "$reply\n"; - close OUT; + print STDERR "# $reply\n"; } sub decline { @@ -121,11 +119,8 @@ if (!defined $machine) { # Yes we did, accept. sendReply "accept"; -open IN, "<&4" or die; -my $x = ; +my $x = ; chomp $x; -#print "got $x\n"; -close IN; if ($x ne "okay") { exit 0; -- cgit 1.4.1