[packages/rpm-build-tools] teeboth: Make STDIN available to a subprocess
draenog
draenog at pld-linux.org
Mon Apr 22 18:26:50 CEST 2013
commit 1477589beb415ed9e9056cc284196c3660c51b2b
Author: Kacper Kornet <draenog at pld-linux.org>
Date: Mon Apr 22 17:22:25 2013 +0100
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
{
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/1477589beb415ed9e9056cc284196c3660c51b2b
More information about the pld-cvs-commit
mailing list