From a3448ad15ec811bbf64aaf5d6496356d26516dfa Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 12 Aug 2020 16:53:41 +0100 Subject: 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 --- bitbake/lib/bb/server/process.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bitbake/lib/bb/server/process.py') diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index a152b44824..a3ef10753d 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py @@ -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") -- cgit v1.2.3-54-g00ecf