summaryrefslogtreecommitdiffstats
path: root/lib/bb/server/process.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-12 16:53:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-12 21:41:15 +0100
commite56c49717355c9493b07d5fc80981a95ad8a0ec8 (patch)
tree182c2ab3fe43bf4eb2db193c9361b345ecf30151 /lib/bb/server/process.py
parentd214e55c45f9733b3289138feec0ae3361a4a48b (diff)
downloadbitbake-e56c49717355c9493b07d5fc80981a95ad8a0ec8.tar.gz
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/server/process.py')
-rw-r--r--lib/bb/server/process.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index a152b4482..a3ef10753 100644
--- a/lib/bb/server/process.py
+++ b/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")