diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-28 23:52:49 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-31 17:05:17 +0000 |
commit | ff2d778f6d33a4e48406f7bbc7fdbc4e95113069 (patch) | |
tree | 2f36536f461fc4aab19eb043ad7e5523087f36d1 /bitbake/lib/bb/cooker.py | |
parent | 4895e78234afb9dc4d41fd5c26e064efeabbb7b6 (diff) | |
download | poky-ff2d778f6d33a4e48406f7bbc7fdbc4e95113069.tar.gz |
bitbake: 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.
(Bitbake rev: 6569ab64bea35de21acc89053ba76e2828163f3f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 7e0d6b47bf..adc232e288 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -1768,6 +1768,9 @@ class BBCooker: | |||
1768 | self.parser.final_cleanup() | 1768 | self.parser.final_cleanup() |
1769 | 1769 | ||
1770 | def finishcommand(self): | 1770 | def finishcommand(self): |
1771 | if hasattr(self.parser, 'shutdown'): | ||
1772 | self.parser.shutdown(clean=False) | ||
1773 | self.parser.final_cleanup() | ||
1771 | self.state = state.initial | 1774 | self.state = state.initial |
1772 | 1775 | ||
1773 | def reset(self): | 1776 | def reset(self): |