Skip to contentSkip to conversation

cooker: fix CookerParser.shutdown()

PATCH New Markus Lehtonen 1 participant 1 message Mar 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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]

---
 lib/bb/cooker.py | 1 -
 1 file changed, 1 deletion(-)
lib/bb/cooker.py +0 -1
index 96cefc7..de395b3 100644
@@ -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')
Signature · 1 line
2.6.2