diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-12-20 15:23:13 -0500 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-12-29 23:51:07 -0700 |
commit | c30630548b66e59e055e372bec4736d118bac131 (patch) | |
tree | 84bc9eb053cc825e51b4af6734e6ecc88a21bb04 /lib/bb/event.py | |
parent | 9ac2ce32b9071b7b5a2579e3f164bfb9b3a80ec3 (diff) | |
download | bitbake-c30630548b66e59e055e372bec4736d118bac131.tar.gz |
runqueue: resurrect use of file objects for pipein/pipeout
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/event.py')
-rw-r--r-- | lib/bb/event.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py index 647d02935..322ce9905 100644 --- a/lib/bb/event.py +++ b/lib/bb/event.py @@ -126,11 +126,7 @@ def fire(event, d): def worker_fire(event, d): data = "<event>" + pickle.dumps(event) + "</event>" - try: - if os.write(worker_pipe, data) != len (data): - print("Error sending event to server (short write)") - except OSError: - sys.exit(1) + worker_pipe.write(data) def fire_from_worker(event, d): if not event.startswith("<event>") or not event.endswith("</event>"): |