]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cooker: fix CookerParser.shutdown()
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 30 Mar 2016 12:54:00 +0000 (15:54 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Mar 2016 20:21:55 +0000 (21:21 +0100)
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@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/cooker.py

index 771932a82d386a158ac41950cc5cb1de2d0206a9..3747e0890b54db5b162c6f458979e60266bbb68d 100644 (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')