diff options
-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: |