[bitbake-devel] [PATCH] cooker: fix CookerParser.shutdown()
Markus Lehtonen
markus.lehtonen at linux.intel.com
Wed Mar 30 12:54:00 UTC 2016
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]
Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
---
lib/bb/cooker.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 96cefc7..de395b3 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -2063,7 +2063,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')
--
2.6.2
More information about the bitbake-devel
mailing list