summaryrefslogtreecommitdiffstats
path: root/bitbake/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-13 08:07:00 +0100
commita3448ad15ec811bbf64aaf5d6496356d26516dfa (patch)
tree33f9c65cafb95c446f3347bf70a555a76f7cba47 /bitbake/lib/bb/server/process.py
parent0c91113c077d8efe01a7c9f788c9bdecbc6493bc (diff)
downloadpoky-a3448ad15ec811bbf64aaf5d6496356d26516dfa.tar.gz
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>
Diffstat (limited to 'bitbake/lib/bb/server/process.py')
-rw-r--r--bitbake/lib/bb/server/process.py3
1 files changed, 1 insertions, 2 deletions
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):
467 sys.stdout.flush() 467 sys.stdout.flush()
468 468
469 server = ProcessServer(self.bitbake_lock, self.sock, self.sockname) 469 server = ProcessServer(self.bitbake_lock, self.sock, self.sockname)
470 self.configuration.setServerRegIdleCallback(server.register_idle_function)
471 os.close(self.readypipe) 470 os.close(self.readypipe)
472 writer = ConnectionWriter(self.readypipein) 471 writer = ConnectionWriter(self.readypipein)
473 try: 472 try:
474 self.cooker = bb.cooker.BBCooker(self.configuration, self.featureset) 473 self.cooker = bb.cooker.BBCooker(self.configuration, self.featureset, server.register_idle_function)
475 except bb.BBHandledException: 474 except bb.BBHandledException:
476 return None 475 return None
477 writer.send("r") 476 writer.send("r")