From 1477589beb415ed9e9056cc284196c3660c51b2b Mon Sep 17 00:00:00 2001 From: Kacper Kornet Date: Mon, 22 Apr 2013 17:22:25 +0100 Subject: [PATCH] teeboth: Make STDIN available to a subprocess Otherwise tests in ack.spec fails, as ack tests if its stdin is a pipe or not and changes its behaviour based on it. --- teeboth | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/teeboth b/teeboth index d598352..6c0f533 100755 --- a/teeboth +++ b/teeboth @@ -31,8 +31,7 @@ sub sigchld } $SIG{CHLD} = \&sigchld; -$pid = open3( \*child_in, \*child_out, \*child_err, @ARGV ); -close child_in; +$pid = open3( "<&STDIN", \*child_out, \*child_err, @ARGV ); sub sethandle { -- 2.44.0