diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-01 17:40:49 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-06 10:27:59 +0000 |
commit | f6f17e974a8e779ad107b661d9d2aee3184e7524 (patch) | |
tree | 9d9b6896ed276c04d9c25ae0902e5140fcc677f7 /bitbake | |
parent | d62c933d84c070510457a1301d0022f12fa3cb73 (diff) | |
download | poky-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.py | 4 |
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 | ||
449 | def connectProcessServer(sockname, featureset): | 453 | def connectProcessServer(sockname, featureset): |