From: Richard Purdie Date: Sat, 1 Dec 2018 17:40:49 +0000 (+0000) Subject: bitbake: process: Flush key output to logs X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=afe797a2773b497ec7d6af54fb81589707cb7974;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index fd1ba47fd52..49973d6670d 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/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):