diff options
| author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-19 23:39:19 +0100 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-19 23:39:19 +0100 |
| commit | 4a8fe7fc997c47b0b10315b0e63f89f7d6342acf (patch) | |
| tree | 55bc14d212716682bbb1bc832b3612d6d8c4a813 /bitbake/lib/bb/runqueue.py | |
| parent | 6e3a3816d5ba4b074f3c119437660fc72efe9fdc (diff) | |
| download | poky-4a8fe7fc997c47b0b10315b0e63f89f7d6342acf.tar.gz | |
bitbake/runqueue.py: Ensure the flush happens as late as possible to avoid data mixups
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
| -rw-r--r-- | bitbake/lib/bb/runqueue.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 82d6c84c0b..67f265bc80 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
| @@ -990,9 +990,6 @@ class RunQueueExecute: | |||
| 990 | return | 990 | return |
| 991 | 991 | ||
| 992 | def fork_off_task(self, fn, task, taskname): | 992 | def fork_off_task(self, fn, task, taskname): |
| 993 | sys.stdout.flush() | ||
| 994 | sys.stderr.flush() | ||
| 995 | |||
| 996 | try: | 993 | try: |
| 997 | the_data = self.cooker.bb_cache.loadDataFull(fn, self.cooker.get_file_appends(fn), self.cooker.configuration.data) | 994 | the_data = self.cooker.bb_cache.loadDataFull(fn, self.cooker.get_file_appends(fn), self.cooker.configuration.data) |
| 998 | 995 | ||
| @@ -1005,6 +1002,9 @@ class RunQueueExecute: | |||
| 1005 | comps = var.split("=") | 1002 | comps = var.split("=") |
| 1006 | env[comps[0]] = comps[1] | 1003 | env[comps[0]] = comps[1] |
| 1007 | 1004 | ||
| 1005 | sys.stdout.flush() | ||
| 1006 | sys.stderr.flush() | ||
| 1007 | |||
| 1008 | proc = subprocess.Popen(["bitbake-runtask", fn, taskname, str(self.cooker.configuration.dry_run)], env=env, stdout=subprocess.PIPE, stdin=subprocess.PIPE) | 1008 | proc = subprocess.Popen(["bitbake-runtask", fn, taskname, str(self.cooker.configuration.dry_run)], env=env, stdout=subprocess.PIPE, stdin=subprocess.PIPE) |
| 1009 | pipein = proc.stdout | 1009 | pipein = proc.stdout |
| 1010 | pipeout = proc.stdin | 1010 | pipeout = proc.stdin |
