summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbitbake/bin/bitbake8
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"
44logger = logging.getLogger("BitBake") 44logger = 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
49try:
50 if sys.stdout.name == '<stdout>':
51 sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
52except:
53 pass
46 54
47class BBConfiguration(object): 55class BBConfiguration(object):
48 """ 56 """