aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-12-28 23:52:49 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-12-30 21:45:22 +0000
commit6569ab64bea35de21acc89053ba76e2828163f3f (patch)
tree535ab5da4bbe2e9cd137cb16eaa3ae4ed6423f9d
parent89435442946767cfe58eedde363802add8f1ab29 (diff)
downloadbitbake-contrib-6569ab64bea35de21acc89053ba76e2828163f3f.tar.gz
cooker: Ensure commands clean up any parser processes
When finishing a command, we need to ensure any parsing processes that may have been started are cleaned up before we reset the cooker state. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/cooker.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 7e0d6b47b..adc232e28 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1768,6 +1768,9 @@ class BBCooker:
self.parser.final_cleanup()
def finishcommand(self):
+ if hasattr(self.parser, 'shutdown'):
+ self.parser.shutdown(clean=False)
+ self.parser.final_cleanup()
self.state = state.initial
def reset(self):