]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
event: don't catch systemexit from handler execution
authorChris Larson <chris_larson@mentor.com>
Thu, 2 Jun 2011 21:32:17 +0000 (14:32 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Jun 2011 22:58:05 +0000 (23:58 +0100)
This means that anyone firing an event can get a systemexit and result in
their process exiting, which isn't ideal, but behaves the way it used to (in
particular, ensures that a sanity check failure will halt the build). This
should be revisited in the future.

(Bitbake rev: d6a0ffdd583be3df734171d7e91d334f798a79ce)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/event.py

index 9e64fe5c429004054473b9c488148fed313e2c8e..cbe49fd699fb32b420162771ca3d87853f2ffd3f 100644 (file)
@@ -87,7 +87,7 @@ def fire_class_handlers(event, d):
     for name, handler in _handlers.iteritems():
         try:
             execute_handler(name, handler, event, d)
-        except BaseException:
+        except Exception:
             continue
 
 ui_queue = []