diff options
-rwxr-xr-x | bitbake/bin/bitbake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 8c46024258..37c10451dc 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake | |||
@@ -43,6 +43,14 @@ from bb import server | |||
43 | __version__ = "1.15.3" | 43 | __version__ = "1.15.3" |
44 | logger = logging.getLogger("BitBake") | 44 | logger = logging.getLogger("BitBake") |
45 | 45 | ||
46 | # Unbuffer stdout to avoid log truncation in the event | ||
47 | # of an unorderly exit as well as to provide timely | ||
48 | # updates to log files for use with tail | ||
49 | try: | ||
50 | if sys.stdout.name == '<stdout>': | ||
51 | sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) | ||
52 | except: | ||
53 | pass | ||
46 | 54 | ||
47 | class BBConfiguration(object): | 55 | class BBConfiguration(object): |
48 | """ | 56 | """ |