cooker: Ensure parser replacement calls parser final_cleanup
PATCH 1/2 cooker: Ensure parser replacement calls parser final_cleanup
This could potentialy account for some of the missing thread cleanup we're seeing.
Signed-off-by Richard Purdie <[email protected]>
--- lib/bb/cooker.py | 1 + 1 file changed, 1 insertion(+)
lib/bb/cooker.py +1 -0
@@ -1563,6 +1563,7 @@ class BBCooker: if self.state in (state.shutdown, state.forceshutdown, state.error): if hasattr(self.parser, 'shutdown'): self.parser.shutdown(clean=False, force = True) + self.parser.final_cleanup() raise bb.BBHandledException() if self.state != state.parsing:
Signature · 1 line
2.25.1
PATCH 2/2 cooker: Assign a name to the sync thread to aid debugging
Signed-off-by Richard Purdie <[email protected]>
--- lib/bb/cooker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/cooker.py +1 -1
@@ -2151,7 +2151,7 @@ class CookerParser(object): for c in self.bb_caches.values(): c.sync() - sync = threading.Thread(target=sync_caches) + sync = threading.Thread(target=sync_caches, name="SyncThread") self.syncthread = sync sync.start() bb.codeparser.parser_cache_savemerge()
Signature · 1 line
2.25.1