bitbake: cooker: fix CookerParser.shutdown()

Prevent a hang when shutdown() is called during parsing (e.g. after
SIGINT). We must not append 'None' to the jobs queue. Otherwise the
worker loop inside Parser.realrun() may break out at the wrong point,
causing the results queue thread blocking bitbake indefinitely.

[YOCTO #9319]

(Bitbake rev: 7ebea3e9a60232222efa8a546a0ff28a53029949)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Markus Lehtonen authored and Richard Purdie committed 2016-03-31 09:13:04 +01:00
1 parent 53b5dc0dda
commit 2554be49f2
1 file changed
-1
-1
View File
@@ -2064,7 +2064,6 @@ class CookerParser(object):
bb.event.fire(event, self.cfgdata)
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')