summaryrefslogtreecommitdiffstats
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:11:27 +0000
commitafe797a2773b497ec7d6af54fb81589707cb7974 (patch)
tree2080e2854a0745594923dc01861dda2c9773aa83
parent5610acda80605aa9c5b0243c872dd1a47bf4b501 (diff)
downloadpoky-afe797a2773b497ec7d6af54fb81589707cb7974.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: 7c0b84cac892744225fa0462f918ea9a79b356cb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 fd1ba47fd5..49973d6670 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -445,6 +445,8 @@ class BitBakeServer(object):
445 445
446 def _startServer(self): 446 def _startServer(self):
447 print(self.start_log_format % (os.getpid(), datetime.datetime.now().strftime(self.start_log_datetime_format))) 447 print(self.start_log_format % (os.getpid(), datetime.datetime.now().strftime(self.start_log_datetime_format)))
448 sys.stdout.flush()
449
448 server = ProcessServer(self.bitbake_lock, self.sock, self.sockname) 450 server = ProcessServer(self.bitbake_lock, self.sock, self.sockname)
449 self.configuration.setServerRegIdleCallback(server.register_idle_function) 451 self.configuration.setServerRegIdleCallback(server.register_idle_function)
450 os.close(self.readypipe) 452 os.close(self.readypipe)
@@ -456,6 +458,8 @@ class BitBakeServer(object):
456 server.server_timeout = self.configuration.server_timeout 458 server.server_timeout = self.configuration.server_timeout
457 server.xmlrpcinterface = self.configuration.xmlrpcinterface 459 server.xmlrpcinterface = self.configuration.xmlrpcinterface
458 print("Started bitbake server pid %d" % os.getpid()) 460 print("Started bitbake server pid %d" % os.getpid())
461 sys.stdout.flush()
462
459 server.start() 463 server.start()
460 464
461def connectProcessServer(sockname, featureset): 465def connectProcessServer(sockname, featureset):