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:27:59 +0000
commitf6f17e974a8e779ad107b661d9d2aee3184e7524 (patch)
tree9d9b6896ed276c04d9c25ae0902e5140fcc677f7 /bitbake
parentd62c933d84c070510457a1301d0022f12fa3cb73 (diff)
downloadpoky-f6f17e974a8e779ad107b661d9d2aee3184e7524.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: 9b15f265643af8bd85af87164ee5cab0bf58ccbb) 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 786877bc44..42d79079a9 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -433,6 +433,8 @@ class BitBakeServer(object):
433 433
434 def _startServer(self): 434 def _startServer(self):
435 print(self.start_log_format % (os.getpid(), datetime.datetime.now().strftime(self.start_log_datetime_format))) 435 print(self.start_log_format % (os.getpid(), datetime.datetime.now().strftime(self.start_log_datetime_format)))
436 sys.stdout.flush()
437
436 server = ProcessServer(self.bitbake_lock, self.sock, self.sockname) 438 server = ProcessServer(self.bitbake_lock, self.sock, self.sockname)
437 self.configuration.setServerRegIdleCallback(server.register_idle_function) 439 self.configuration.setServerRegIdleCallback(server.register_idle_function)
438 os.close(self.readypipe) 440 os.close(self.readypipe)
@@ -444,6 +446,8 @@ class BitBakeServer(object):
444 server.server_timeout = self.configuration.server_timeout 446 server.server_timeout = self.configuration.server_timeout
445 server.xmlrpcinterface = self.configuration.xmlrpcinterface 447 server.xmlrpcinterface = self.configuration.xmlrpcinterface
446 print("Started bitbake server pid %d" % os.getpid()) 448 print("Started bitbake server pid %d" % os.getpid())
449 sys.stdout.flush()
450
447 server.start() 451 server.start()
448 452
449def connectProcessServer(sockname, featureset): 453def connectProcessServer(sockname, featureset):