summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-02-11 12:37:08 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-11 22:34:19 +0000
commitf9f93ae856ac7fb1bdf5b6a794ffb7f759e3d28b (patch)
tree5c14f350609237f3299d212190446fd184568e41 /bitbake/lib
parent1f7f07746629a55e4efd5f505e84eb6c66567115 (diff)
downloadpoky-f9f93ae856ac7fb1bdf5b6a794ffb7f759e3d28b.tar.gz
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 <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/cooker.py1
1 files changed, 1 insertions, 0 deletions
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):
2058 self.feeder_quit.put(None) 2058 self.feeder_quit.put(None)
2059 for process in self.processes: 2059 for process in self.processes:
2060 self.jobs.put(None) 2060 self.jobs.put(None)
2061 self.parser_quit.put(None)
2061 else: 2062 else:
2062 self.feeder_quit.put('cancel') 2063 self.feeder_quit.put('cancel')
2063 2064