From 1dbc9399f3edde5140a61ec69ed54934b4dc6f51 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 13 Jul 2008 11:54:13 +0000 Subject: [PATCH] In can_poll_tty(), direct bash's stderr into the pty since we don't want so see any error message it generates (due to PipeReader closing it's end of the pty). The error message is irrelevant since all we want to know is whether or not the data is successfully transmitted through the pty. svn path=/main/trunk/; revision=11037 --- pym/_emerge/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index ac2d63b28..12cd9c690 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -8009,7 +8009,7 @@ def can_poll_pty(): producer = SpawnProcess( args=["bash", "-c", "echo -n '%s'" % test_string], - fd_pipes={1:slave_fd}, scheduler=scheduler) + fd_pipes={1:slave_fd,2:slave_fd}, scheduler=scheduler) consumer = PipeReader( input_files={"producer" : master_file}, -- 2.26.2