summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-06-12 09:23:39 +0000
committerRichard Purdie <richard@openedhand.com>2007-06-12 09:23:39 +0000
commit25cbce31b3bb84347b16a9604164c4f5ac4b6ba6 (patch)
treeb5936171631f8265114033bb6598bbf1584f4356 /bitbake
parenta9947a018599b606344e57025dea0d2db551591e (diff)
downloadpoky-25cbce31b3bb84347b16a9604164c4f5ac4b6ba6.tar.gz
runqueue.py: Correctly use /dev/null as stdin
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1918 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/runqueue.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 83c3ccf882..ef3cbd3067 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -492,7 +492,8 @@ class RunQueue:
492 # signal.signal(signal.SIGINT, signal.SIG_IGN) 492 # signal.signal(signal.SIGINT, signal.SIG_IGN)
493 # Make the child the process group leader 493 # Make the child the process group leader
494 os.setpgid(0, 0) 494 os.setpgid(0, 0)
495 sys.stdin = open('/dev/null', 'r') 495 newsi = os.open('/dev/null', os.O_RDWR)
496 os.dup2(newsi, sys.stdin.fileno())
496 self.cooker.configuration.cmd = taskname[3:] 497 self.cooker.configuration.cmd = taskname[3:]
497 try: 498 try:
498 self.cooker.tryBuild(fn, False) 499 self.cooker.tryBuild(fn, False)