aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2007-06-12 10:26:28 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2007-06-12 10:26:28 +0000
commit043b2ea55d13aefb9d26451f9b5c7d148cac6d40 (patch)
tree7a4a6acf440efcf5c8e0d4b2ed3f6dc255ef6096 /lib/bb/runqueue.py
parenta8ebcce92d2eefca5fcaa06c025d7ac86f6e3cb7 (diff)
downloadbitbake-043b2ea55d13aefb9d26451f9b5c7d148cac6d40.tar.gz
runqueue.py: Correctly redirect stdin when forking.
cooker.py: If parsing errors are found, exit, too many users miss the errors
Diffstat (limited to 'lib/bb/runqueue.py')
-rw-r--r--lib/bb/runqueue.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 8113c96cf..3dd4382bc 100644
--- a/lib/bb/runqueue.py
+++ b/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)