aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake
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
parent1f7f07746629a55e4efd5f505e84eb6c66567115 (diff)
downloadopenembedded-core-contrib-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')
-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):
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')