summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/server
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-31 08:55:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-31 15:13:53 +0100
commit3010e4e7cf120f68afef4081bb1aa1733800589e (patch)
tree10502f5e1729aaf74fa4714ebdc7b37488a76597 /bitbake/lib/bb/server
parent129a52725f2de7f5599d89e301ffef8a1d4e27ab (diff)
downloadpoky-3010e4e7cf120f68afef4081bb1aa1733800589e.tar.gz
bitbake: process: Add some extra server startup logs
We have cases where the server is being started but we're not seeing any messages from it. Add some earlier logging so we can try and better understand where issues may be occurring. (Bitbake rev: 10a6a48c0c5a2fe2051e90143e66075356853971) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/server')
-rw-r--r--bitbake/lib/bb/server/process.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index aefabbed01..bfd6404b73 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -100,7 +100,8 @@ class ProcessServer(multiprocessing.Process):
100 else: 100 else:
101 self.bitbake_lock.write("%s\n" % (os.getpid())) 101 self.bitbake_lock.write("%s\n" % (os.getpid()))
102 self.bitbake_lock.flush() 102 self.bitbake_lock.flush()
103 except: 103 except Exception as e:
104 print("Error writing to lock file: %s" % str(e))
104 pass 105 pass
105 106
106 if self.cooker.configuration.profile: 107 if self.cooker.configuration.profile:
@@ -132,6 +133,7 @@ class ProcessServer(multiprocessing.Process):
132 fds = [self.sock] 133 fds = [self.sock]
133 if self.xmlrpc: 134 if self.xmlrpc:
134 fds.append(self.xmlrpc) 135 fds.append(self.xmlrpc)
136 print("Entering server connection loop")
135 while not self.quit: 137 while not self.quit:
136 if self.sock in ready: 138 if self.sock in ready:
137 self.controllersock, address = self.sock.accept() 139 self.controllersock, address = self.sock.accept()
@@ -388,6 +390,7 @@ class BitBakeServer(object):
388 os.close(self.readypipein) 390 os.close(self.readypipein)
389 391
390 def _startServer(self): 392 def _startServer(self):
393 print("Starting bitbake server pid %d" % os.getpid())
391 server = ProcessServer(self.bitbake_lock, self.sock, self.sockname) 394 server = ProcessServer(self.bitbake_lock, self.sock, self.sockname)
392 self.configuration.setServerRegIdleCallback(server.register_idle_function) 395 self.configuration.setServerRegIdleCallback(server.register_idle_function)
393 396