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-23 11:57:57 +0100 |
commit | c6918b62fd59e6d03c989b6c1546b895cfca05b4 (patch) | |
tree | 5f3bd1533b47ad26f27d59e8390d3a3a963b0321 /bitbake/lib | |
parent | df123ddab43a221cc26028e0aff211ac34c1eafc (diff) | |
download | poky-c6918b62fd59e6d03c989b6c1546b895cfca05b4.tar.gz |
bitbake: 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.
(Bitbake rev: ad286d6fed7a580bec36a92c7b7e205322ac407b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 7ec3ab8fa8..f1155f8f45 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -1570,7 +1570,12 @@ class RunQueueExecuteTasks(RunQueueExecute): | |||
1570 | taskdep = self.rqdata.dataCache.task_deps[fn] | 1570 | taskdep = self.rqdata.dataCache.task_deps[fn] |
1571 | if 'fakeroot' in taskdep and taskname in taskdep['fakeroot'] and not self.cooker.configuration.dry_run: | 1571 | if 'fakeroot' in taskdep and taskname in taskdep['fakeroot'] and not self.cooker.configuration.dry_run: |
1572 | if not self.rq.fakeworker: | 1572 | if not self.rq.fakeworker: |
1573 | self.rq.start_fakeworker(self) | 1573 | try: |
1574 | self.rq.start_fakeworker(self) | ||
1575 | except OSError as exc: | ||
1576 | logger.critical("Failed to spawn fakeroot worker to run %s:%s: %s" % (fn, taskname, str(exc))) | ||
1577 | self.rq.state = runQueueFailed | ||
1578 | return True | ||
1574 | self.rq.fakeworker.stdin.write("<runtask>" + pickle.dumps((fn, task, taskname, False, self.cooker.collection.get_file_appends(fn), taskdepdata)) + "</runtask>") | 1579 | self.rq.fakeworker.stdin.write("<runtask>" + pickle.dumps((fn, task, taskname, False, self.cooker.collection.get_file_appends(fn), taskdepdata)) + "</runtask>") |
1575 | self.rq.fakeworker.stdin.flush() | 1580 | self.rq.fakeworker.stdin.flush() |
1576 | else: | 1581 | else: |