diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-19 12:25:45 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-19 22:43:48 +0100 |
commit | ad286d6fed7a580bec36a92c7b7e205322ac407b (patch) | |
tree | eeeebfc120c15152f9ecabb11fa3a1489d8018c0 /lib/bb | |
parent | 44ac81e5281fb62ad00e2f79a9d754118ea62526 (diff) | |
download | bitbake-ad286d6fed7a580bec36a92c7b7e205322ac407b.tar.gz |
runqueue: Improve handling of fakeworker failing to start
Currently if the fakeworker failes to start the output from bitbake is confusing.
Improve the error handling to give a clear indication of what failed.
Patch from Chris Larson.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb')
-rw-r--r-- | lib/bb/runqueue.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 7ec3ab8fa..f1155f8f4 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -1570,7 +1570,12 @@ class RunQueueExecuteTasks(RunQueueExecute): taskdep = self.rqdata.dataCache.task_deps[fn] if 'fakeroot' in taskdep and taskname in taskdep['fakeroot'] and not self.cooker.configuration.dry_run: if not self.rq.fakeworker: - self.rq.start_fakeworker(self) + try: + self.rq.start_fakeworker(self) + except OSError as exc: + logger.critical("Failed to spawn fakeroot worker to run %s:%s: %s" % (fn, taskname, str(exc))) + self.rq.state = runQueueFailed + return True self.rq.fakeworker.stdin.write("<runtask>" + pickle.dumps((fn, task, taskname, False, self.cooker.collection.get_file_appends(fn), taskdepdata)) + "</runtask>") self.rq.fakeworker.stdin.flush() else: |