From: Zac Medico Date: Fri, 11 Jan 2008 05:37:37 +0000 (-0000) Subject: When spawing the "depend" phase, use file descriptors from sys.std* X-Git-Tag: v2.1.4~17 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3105b9c3dec4fa25928bd773373476b4f69e1816;p=portage.git When spawing the "depend" phase, use file descriptors from sys.std* streams. (trunk r9157) svn path=/main/branches/2.1.2/; revision=9169 --- 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)