projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0b59bc
)
In portage.process.spawn(), make the default fd_pipes value get
author
Zac Medico
<zmedico@gentoo.org>
Fri, 21 Dec 2007 02:20:30 +0000
(
02:20
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 21 Dec 2007 02:20:30 +0000
(
02:20
-0000)
file descriptors from sys.std{in,out,err} so that they can be
overridden.
svn path=/main/trunk/; revision=9018
pym/portage/process.py
patch
|
blob
|
history
diff --git
a/pym/portage/process.py
b/pym/portage/process.py
index fcec7588c3246926a16e7dc58b016133a3d5a1c1..e9a1fab703d20ed491f26940efa501836d91e824 100644
(file)
--- a/
pym/portage/process.py
+++ b/
pym/portage/process.py
@@
-185,7
+185,11
@@
def spawn(mycommand, env={}, opt_name=None, fd_pipes=None, returnpid=False,
# If we haven't been told what file descriptors to use
# default to propogating our stdin, stdout and stderr.
if fd_pipes is None:
- fd_pipes = {0:0, 1:1, 2:2}
+ fd_pipes = {
+ 0:sys.stdin.fileno(),
+ 1:sys.stdout.fileno(),
+ 2:sys.stderr.fileno(),
+ }
# mypids will hold the pids of all processes created.
mypids = []