summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-02 09:14:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-03 17:51:26 +0100
commitb868387c425cca35c06179b90d44422fbaf2a9ab (patch)
treea9f117dce639eee37e5275e424016ea5c4fad877 /bitbake/lib/bb
parent99bcad583aee31d54f3f34d50fc4d6a417484114 (diff)
downloadpoky-b868387c425cca35c06179b90d44422fbaf2a9ab.tar.gz
bitbake: parse: Ensure any existing siggen is closed down first
We're still seeing issues with unclosed asyncio event loops. At the init site, make sure any existing one is closed first to try and avoid this. (Bitbake rev: 78dee3c03c75a27531fcff26f9298fce2519bdde) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/parse/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/parse/__init__.py b/bitbake/lib/bb/parse/__init__.py
index c01807ba87..347609513b 100644
--- a/bitbake/lib/bb/parse/__init__.py
+++ b/bitbake/lib/bb/parse/__init__.py
@@ -113,6 +113,8 @@ def init(fn, data):
113 return h['init'](data) 113 return h['init'](data)
114 114
115def init_parser(d): 115def init_parser(d):
116 if hasattr(bb.parse, "siggen"):
117 bb.parse.siggen.exit()
116 bb.parse.siggen = bb.siggen.init(d) 118 bb.parse.siggen = bb.siggen.init(d)
117 119
118def resolve_file(fn, d): 120def resolve_file(fn, d):