summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-01 23:13:34 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-01 23:13:41 +0100
commitbbaaf2cf7b5a9339d3790610e622020c19d52f5a (patch)
tree4ef626e26b1d2ac5dc1d8eeb03a5ce98420e2a01 /lib
parent42ff9de77f24e2a0bec48a14b64c4b538e00b4af (diff)
downloadbitbake-bbaaf2cf7b5a9339d3790610e622020c19d52f5a.tar.gz
cooker: Avoid error if siggen wasn't setup
In some cases we'd never have setup a siggen so don't error in that case. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/cooker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index d100b96f5..df4acca18 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1745,7 +1745,8 @@ class BBCooker:
def post_serve(self):
self.shutdown(force=True)
prserv.serv.auto_shutdown()
- bb.parse.siggen.exit()
+ if hasattr(bb.parse, "siggen"):
+ bb.parse.siggen.exit()
if self.hashserv:
self.hashserv.process.terminate()
self.hashserv.process.join()