bitbake: server/process: Simplfy idle callback handler function

Having the idle callbacks abstracted via the configuration object
makes no sense. Its like this for historical reasons from the
multiple server backends but we don't need this now so simplfy.

(Bitbake rev: e56c49717355c9493b07d5fc80981a95ad8a0ec8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2020-08-12 16:53:41 +01:00
parent 0c91113c07
commit a3448ad15e
4 changed files with 9 additions and 14 deletions

View File

@@ -467,11 +467,10 @@ class BitBakeServer(object):
sys.stdout.flush()
server = ProcessServer(self.bitbake_lock, self.sock, self.sockname)
self.configuration.setServerRegIdleCallback(server.register_idle_function)
os.close(self.readypipe)
writer = ConnectionWriter(self.readypipein)
try:
self.cooker = bb.cooker.BBCooker(self.configuration, self.featureset)
self.cooker = bb.cooker.BBCooker(self.configuration, self.featureset, server.register_idle_function)
except bb.BBHandledException:
return None
writer.send("r")