projects
/
scm
/
bb
/
tizen-distro.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7c3e50
)
runqueue.py: Correctly use /dev/null as stdin
author
Richard Purdie
<richard@openedhand.com>
Tue, 12 Jun 2007 09:23:39 +0000
(09:23 +0000)
committer
Richard Purdie
<richard@openedhand.com>
Tue, 12 Jun 2007 09:23:39 +0000
(09:23 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1918
311d38ba
-8fff-0310-9ca6-
ca027cbcb966
bitbake/lib/bb/runqueue.py
patch
|
blob
|
history
diff --git
a/bitbake/lib/bb/runqueue.py
b/bitbake/lib/bb/runqueue.py
index
83c3ccf
..
ef3cbd3
100644
(file)
--- a/
bitbake/lib/bb/runqueue.py
+++ b/
bitbake/lib/bb/runqueue.py
@@
-492,7
+492,8
@@
class RunQueue:
# signal.signal(signal.SIGINT, signal.SIG_IGN)
# Make the child the process group leader
os.setpgid(0, 0)
- sys.stdin = open('/dev/null', 'r')
+ newsi = os.open('/dev/null', os.O_RDWR)
+ os.dup2(newsi, sys.stdin.fileno())
self.cooker.configuration.cmd = taskname[3:]
try:
self.cooker.tryBuild(fn, False)