diff options
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/bitbake-worker | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker index 8a24161250..96a4d4cdec 100755 --- a/bitbake/bin/bitbake-worker +++ b/bitbake/bin/bitbake-worker | |||
@@ -24,6 +24,15 @@ if sys.argv[1] == "decafbadbad": | |||
24 | except: | 24 | except: |
25 | import profile | 25 | import profile |
26 | 26 | ||
27 | # Unbuffer stdout to avoid log truncation in the event | ||
28 | # of an unorderly exit as well as to provide timely | ||
29 | # updates to log files for use with tail | ||
30 | try: | ||
31 | if sys.stdout.name == '<stdout>': | ||
32 | sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) | ||
33 | except: | ||
34 | pass | ||
35 | |||
27 | logger = logging.getLogger("BitBake") | 36 | logger = logging.getLogger("BitBake") |
28 | 37 | ||
29 | try: | 38 | try: |