summaryrefslogtreecommitdiffstats
path: root/bitbake
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-06 10:28:05 +0000
commita13af733dcab6d4d62b33143837af118c0c07938 (patch)
treede50d2f60b443d50c521f940342ba585df82bc95 /bitbake
parent61125e3e8f2ab61fa9925c2e013b73c4f42ac24c (diff)
downloadpoky-a13af733dcab6d4d62b33143837af118c0c07938.tar.gz
bitbake: 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. (Bitbake rev: e698ff1817e3536211f40af161c563d15e2ef3b5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/server/process.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index 922d88696d..0749b5bc3e 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -428,6 +428,8 @@ class BitBakeServer(object):
428 428
429 def _startServer(self): 429 def _startServer(self):
430 print(self.start_log_format % (os.getpid(), datetime.datetime.now().strftime(self.start_log_datetime_format))) 430 print(self.start_log_format % (os.getpid(), datetime.datetime.now().strftime(self.start_log_datetime_format)))
431 sys.stdout.flush()
432
431 server = ProcessServer(self.bitbake_lock, self.sock, self.sockname) 433 server = ProcessServer(self.bitbake_lock, self.sock, self.sockname)
432 self.configuration.setServerRegIdleCallback(server.register_idle_function) 434 self.configuration.setServerRegIdleCallback(server.register_idle_function)
433 writer = ConnectionWriter(self.readypipein) 435 writer = ConnectionWriter(self.readypipein)
@@ -443,6 +445,8 @@ class BitBakeServer(object):
443 server.server_timeout = self.configuration.server_timeout 445 server.server_timeout = self.configuration.server_timeout
444 server.xmlrpcinterface = self.configuration.xmlrpcinterface 446 server.xmlrpcinterface = self.configuration.xmlrpcinterface
445 print("Started bitbake server pid %d" % os.getpid()) 447 print("Started bitbake server pid %d" % os.getpid())
448 sys.stdout.flush()
449
446 server.start() 450 server.start()
447 451
448def connectProcessServer(sockname, featureset): 452def connectProcessServer(sockname, featureset):