summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-06-26 04:08:45 -1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-06-26 22:55:33 +0100
commitb8fd6f5d9959d27176ea016c249cf6d35ac8ba03 (patch)
treeadbe551b3f5e0f58ea4dd3b07f8a14e57aaaae2b
parent494fcfcb7c4469915c67f544997104d81c417266 (diff)
downloadbitbake-b8fd6f5d9959d27176ea016c249cf6d35ac8ba03.tar.gz
server/process: Fix logging issues where only the first message was displayedyocto-4.0.3yocto-4.0.22022-04.3-kirkstone2022-04.2-kirkstone2.0.32.0.2
I realised only the first logging message was being displayed in a given parsing process. The reason turned out to be the UI handler failing with a "pop from empty list". The default handler was then lost and no further messages were processed. Fix this by catching the exception correctly in the connection writer code. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit d3e64f64525187f1409531a0bd99df576e627f7f) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/server/process.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index 613956f30..f2c5c1583 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -757,8 +757,11 @@ class ConnectionWriter(object):
process.queue_signals = True
self._send(obj)
process.queue_signals = False
- for sig in process.signal_received.pop():
- process.handle_sig(sig, None)
+ try:
+ for sig in process.signal_received.pop():
+ process.handle_sig(sig, None)
+ except IndexError:
+ pass
else:
self._send(obj)