diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/server/process.py | 5 |
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 | ||