From f9f93ae856ac7fb1bdf5b6a794ffb7f759e3d28b Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Thu, 11 Feb 2016 12:37:08 +0200 Subject: bitbake: cooker: gracefully shutdown parsers CookerParser.shutdown code doesn't do all required work to shutdown parser processes. As a result bitbake hangs if interrupted during parsing. Putting None into the parser_quit queue should fix this issue as it makes parsers to quit main loop. (Bitbake rev: f67307977e8f089ce6d208d3e9de2a6a1768757e) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake/lib/bb/cooker.py') diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index af3d77b3a8..43e9f18018 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -2058,6 +2058,7 @@ class CookerParser(object): self.feeder_quit.put(None) for process in self.processes: self.jobs.put(None) + self.parser_quit.put(None) else: self.feeder_quit.put('cancel') -- cgit v1.2.3-54-g00ecf