diff options
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r-- | bitbake/lib/bb/build.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 948c3951f4..22428a649c 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -413,6 +413,13 @@ def _exec_task(fn, task, d, quieterr): | |||
413 | nice = int(nice) - curnice | 413 | nice = int(nice) - curnice |
414 | newnice = os.nice(nice) | 414 | newnice = os.nice(nice) |
415 | logger.debug(1, "Renice to %s " % newnice) | 415 | logger.debug(1, "Renice to %s " % newnice) |
416 | ionice = localdata.getVar("BB_TASK_IONICE_LEVEL", True) | ||
417 | if ionice: | ||
418 | try: | ||
419 | cls, prio = ionice.split(".", 1) | ||
420 | bb.utils.ioprio_set(os.getpid(), int(cls), int(prio)) | ||
421 | except: | ||
422 | bb.warn("Invalid ionice level %s" % ionice) | ||
416 | 423 | ||
417 | bb.utils.mkdirhier(tempdir) | 424 | bb.utils.mkdirhier(tempdir) |
418 | 425 | ||