diff options
-rw-r--r-- | bitbake/lib/bb/event.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 7 |
2 files changed, 3 insertions, 6 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py index 8b45501c00..450d913633 100644 --- a/bitbake/lib/bb/event.py +++ b/bitbake/lib/bb/event.py | |||
@@ -129,13 +129,11 @@ def fire(event, d): | |||
129 | def worker_fire(event, d): | 129 | def worker_fire(event, d): |
130 | data = "<event>" + pickle.dumps(event) + "</event>" | 130 | data = "<event>" + pickle.dumps(event) + "</event>" |
131 | worker_pipe.write(data) | 131 | worker_pipe.write(data) |
132 | worker_pipe.flush() | ||
133 | 132 | ||
134 | def fire_from_worker(event, d): | 133 | def fire_from_worker(event, d): |
135 | if not event.startswith("<event>") or not event.endswith("</event>"): | 134 | if not event.startswith("<event>") or not event.endswith("</event>"): |
136 | print("Error, not an event %s" % event) | 135 | print("Error, not an event %s" % event) |
137 | return | 136 | return |
138 | #print "Got event %s" % event | ||
139 | event = pickle.loads(event[7:-8]) | 137 | event = pickle.loads(event[7:-8]) |
140 | fire_ui_handlers(event, d) | 138 | fire_ui_handlers(event, d) |
141 | 139 | ||
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: | |||
1083 | sys.stdout.flush() | 1083 | sys.stdout.flush() |
1084 | sys.stderr.flush() | 1084 | sys.stderr.flush() |
1085 | try: | 1085 | try: |
1086 | pipeinfd, pipeoutfd = os.pipe() | 1086 | pipein, pipeout = os.pipe() |
1087 | pipein = os.fdopen(pipeinfd, 'rb', 4096) | 1087 | pipein = os.fdopen(pipein, 'rb', 4096) |
1088 | pipeout = os.fdopen(pipeoutfd, 'wb', 4096) | 1088 | pipeout = os.fdopen(pipeout, 'wb', 0) |
1089 | |||
1090 | pid = os.fork() | 1089 | pid = os.fork() |
1091 | except OSError as e: | 1090 | except OSError as e: |
1092 | bb.msg.fatal(bb.msg.domain.RunQueue, "fork failed: %d (%s)" % (e.errno, e.strerror)) | 1091 | bb.msg.fatal(bb.msg.domain.RunQueue, "fork failed: %d (%s)" % (e.errno, e.strerror)) |