From dd71707d5a5a420a4406ce88164ac2a32cc04956 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 18 Jul 2017 22:01:15 +0100 Subject: bitbake: event/command: Allow UI to request the UI eventhander ID The UI may want to change its event mask however to do this, it needs the event handler's ID. Tweak the code to allow this to be stored and add a command to query it. Use the new command in the process server backend. (Bitbake rev: f8cf2cb58b80ce74f756a11a9773b6b0e78d51ee) Signed-off-by: Richard Purdie --- bitbake/lib/bb/server/process.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/server') diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index a8ba4681c6..cfcd76495c 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py @@ -63,7 +63,12 @@ class ServerCommunicator(): pass def getEventHandle(self): - return self.event_handle.value + handle, error = self.runCommand(["getUIHandlerNum"]) + if error: + logger.error("Unable to get UI Handler Number: %s" % error) + raise BaseException(error) + + return handle class EventAdapter(): """ -- cgit v1.2.3-54-g00ecf