In can_poll_tty(), direct bash's stderr into the pty since we don't want
authorZac Medico <zmedico@gentoo.org>
Sun, 13 Jul 2008 11:54:13 +0000 (11:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 13 Jul 2008 11:54:13 +0000 (11:54 -0000)
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

index ac2d63b28a72793213207c8f347a2547f7f44087..12cd9c69004be5f25b7ff8c9076ab418e5ed6014 100644 (file)
@@ -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},