diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index a508d137c8..a46527505f 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -1106,15 +1106,11 @@ class RunQueueExecute: | |||
1106 | # No stdin | 1106 | # No stdin |
1107 | newsi = os.open(os.devnull, os.O_RDWR) | 1107 | newsi = os.open(os.devnull, os.O_RDWR) |
1108 | os.dup2(newsi, sys.stdin.fileno()) | 1108 | os.dup2(newsi, sys.stdin.fileno()) |
1109 | # Stdout to a logfile | ||
1110 | #logout = data.expand("${TMPDIR}/log/stdout.%s" % os.getpid(), self.cfgData, True) | ||
1111 | #mkdirhier(os.path.dirname(logout)) | ||
1112 | #newso = open(logout, 'w') | ||
1113 | #os.dup2(newso.fileno(), sys.stdout.fileno()) | ||
1114 | #os.dup2(newso.fileno(), sys.stderr.fileno()) | ||
1115 | if quieterrors: | 1109 | if quieterrors: |
1116 | the_data.setVarFlag(taskname, "quieterrors", "1") | 1110 | the_data.setVarFlag(taskname, "quieterrors", "1") |
1117 | 1111 | ||
1112 | bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY", self, self.cooker.configuration.data) | ||
1113 | bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY2", fn, self.cooker.configuration.data) | ||
1118 | bb.data.setVar("BB_WORKERCONTEXT", "1", the_data) | 1114 | bb.data.setVar("BB_WORKERCONTEXT", "1", the_data) |
1119 | bb.parse.siggen.set_taskdata(self.rqdata.hashes, self.rqdata.hash_deps) | 1115 | bb.parse.siggen.set_taskdata(self.rqdata.hashes, self.rqdata.hash_deps) |
1120 | 1116 | ||
@@ -1618,14 +1614,14 @@ class runQueueTaskCompleted(runQueueEvent): | |||
1618 | Event notifing a task completed | 1614 | Event notifing a task completed |
1619 | """ | 1615 | """ |
1620 | 1616 | ||
1621 | #def check_stamp_fn(fn, taskname, d): | 1617 | def check_stamp_fn(fn, taskname, d): |
1622 | # rqexe = bb.data.getVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY", d) | 1618 | rqexe = bb.data.getVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY", d) |
1623 | # fn = bb.data.getVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY2", d) | 1619 | fn = bb.data.getVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY2", d) |
1624 | # fnid = rqexe.rqdata.taskData.getfn_id(fn) | 1620 | fnid = rqexe.rqdata.taskData.getfn_id(fn) |
1625 | # taskid = rqexe.rqdata.get_task_id(fnid, taskname) | 1621 | taskid = rqexe.rqdata.get_task_id(fnid, taskname) |
1626 | # if taskid is not None: | 1622 | if taskid is not None: |
1627 | # return rqexe.rq.check_stamp_task(taskid) | 1623 | return rqexe.rq.check_stamp_task(taskid) |
1628 | # return None | 1624 | return None |
1629 | 1625 | ||
1630 | class runQueuePipe(): | 1626 | class runQueuePipe(): |
1631 | """ | 1627 | """ |