From 3105b9c3dec4fa25928bd773373476b4f69e1816 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 11 Jan 2008 05:37:37 +0000 Subject: [PATCH] When spawing the "depend" phase, use file descriptors from sys.std* streams. (trunk r9157) svn path=/main/branches/2.1.2/; revision=9169 --- pym/portage.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pym/portage.py b/pym/portage.py index d83cd6e0e..60ac5aa9e 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -4376,7 +4376,11 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0, if isinstance(dbkey, dict): mysettings["dbkey"] = "" pr, pw = os.pipe() - fd_pipes = {0:0, 1:1, 2:2, 9:pw} + fd_pipes = { + 0:sys.stdin.fileno(), + 1:sys.stdout.fileno(), + 2:sys.stderr.fileno(), + 9:pw} mypids = spawn(_shell_quote(ebuild_sh_binary) + " depend", mysettings, fd_pipes=fd_pipes, returnpid=True, droppriv=droppriv) -- 2.26.2