]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: process: Add some extra server startup logs
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 31 Jul 2017 07:55:15 +0000 (08:55 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 31 Jul 2017 14:13:53 +0000 (15:13 +0100)
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>
bitbake/lib/bb/server/process.py

index aefabbed01a69736f5d1de0603816d6a9c945fbc..bfd6404b7389384f30edc16e772ad6c6baad0df6 100644 (file)
@@ -100,7 +100,8 @@ class ProcessServer(multiprocessing.Process):
             else:
                 self.bitbake_lock.write("%s\n" % (os.getpid()))
             self.bitbake_lock.flush()
-        except:
+        except Exception as e:
+            print("Error writing to lock file: %s" % str(e))
             pass
 
         if self.cooker.configuration.profile:
@@ -132,6 +133,7 @@ class ProcessServer(multiprocessing.Process):
         fds = [self.sock]
         if self.xmlrpc:
             fds.append(self.xmlrpc)
+        print("Entering server connection loop")
         while not self.quit:
             if self.sock in ready:
                 self.controllersock, address = self.sock.accept()
@@ -388,6 +390,7 @@ class BitBakeServer(object):
         os.close(self.readypipein)
 
     def _startServer(self):
+        print("Starting bitbake server pid %d" % os.getpid())
         server = ProcessServer(self.bitbake_lock, self.sock, self.sockname)
         self.configuration.setServerRegIdleCallback(server.register_idle_function)