aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-01 17:40:49 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-05 13:09:58 +0000
commit7c0b84cac892744225fa0462f918ea9a79b356cb (patch)
tree20b93deb67880a94837cbe1ac4257010b5775f4a /lib
parent767c9596d129d21ddf5d2e00c55f0a0525c641dc (diff)
downloadbitbake-7c0b84cac892744225fa0462f918ea9a79b356cb.tar.gz
process: Flush key output to logs
Small tweak to ensure these items are printed into the log since there is other logging code which looks for the header and this makes it clearer the server did start but is slow somewhere in startup. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/server/process.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index fd1ba47fd..49973d667 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -445,6 +445,8 @@ class BitBakeServer(object):
def _startServer(self):
print(self.start_log_format % (os.getpid(), datetime.datetime.now().strftime(self.start_log_datetime_format)))
+ sys.stdout.flush()
+
server = ProcessServer(self.bitbake_lock, self.sock, self.sockname)
self.configuration.setServerRegIdleCallback(server.register_idle_function)
os.close(self.readypipe)
@@ -456,6 +458,8 @@ class BitBakeServer(object):
server.server_timeout = self.configuration.server_timeout
server.xmlrpcinterface = self.configuration.xmlrpcinterface
print("Started bitbake server pid %d" % os.getpid())
+ sys.stdout.flush()
+
server.start()
def connectProcessServer(sockname, featureset):