summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-10 13:12:35 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-10 13:24:04 +0000
commit2c2d160c889ac03e47f58219375d558b8b9ce358 (patch)
tree44def941a3f0223a7992bdc8ac58d0dd9f34eac8 /bitbake/lib/bb/runqueue.py
parent9336ba1fd2ae750d3d399cc046896ef50f4cc0ed (diff)
downloadopenembedded-core-2c2d160c889ac03e47f58219375d558b8b9ce358.tar.gz
openembedded-core-2c2d160c889ac03e47f58219375d558b8b9ce358.tar.bz2
openembedded-core-2c2d160c889ac03e47f58219375d558b8b9ce358.zip
bitbake: Update event queue handling to match upstream bitbake
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r--bitbake/lib/bb/runqueue.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 8580f51693..054191b8c9 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -1083,10 +1083,9 @@ class RunQueueExecute:
sys.stdout.flush()
sys.stderr.flush()
try:
- pipeinfd, pipeoutfd = os.pipe()
- pipein = os.fdopen(pipeinfd, 'rb', 4096)
- pipeout = os.fdopen(pipeoutfd, 'wb', 4096)
-
+ pipein, pipeout = os.pipe()
+ pipein = os.fdopen(pipein, 'rb', 4096)
+ pipeout = os.fdopen(pipeout, 'wb', 0)
pid = os.fork()
except OSError as e:
bb.msg.fatal(bb.msg.domain.RunQueue, "fork failed: %d (%s)" % (e.errno, e.strerror))