diff options
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index e8686475b9..4c0b569439 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -1455,7 +1455,7 @@ class Parser(multiprocessing.Process): | |||
1455 | self.init = init | 1455 | self.init = init |
1456 | multiprocessing.Process.__init__(self) | 1456 | multiprocessing.Process.__init__(self) |
1457 | self.context = bb.utils.get_context().copy() | 1457 | self.context = bb.utils.get_context().copy() |
1458 | self.handlers = bb.event._handlers.copy() | 1458 | self.handlers = bb.event.get_class_handlers().copy() |
1459 | 1459 | ||
1460 | def run(self): | 1460 | def run(self): |
1461 | if self.init: | 1461 | if self.init: |
@@ -1492,7 +1492,7 @@ class Parser(multiprocessing.Process): | |||
1492 | try: | 1492 | try: |
1493 | # Reset our environment and handlers to the original settings | 1493 | # Reset our environment and handlers to the original settings |
1494 | bb.utils.set_context(self.context.copy()) | 1494 | bb.utils.set_context(self.context.copy()) |
1495 | bb.event._handlers = self.handlers.copy() | 1495 | bb.event.set_class_handlers(self.handlers.copy()) |
1496 | return True, bb.cache.Cache.parse(filename, appends, self.cfg, caches_array) | 1496 | return True, bb.cache.Cache.parse(filename, appends, self.cfg, caches_array) |
1497 | except Exception as exc: | 1497 | except Exception as exc: |
1498 | tb = sys.exc_info()[2] | 1498 | tb = sys.exc_info()[2] |