summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-24 23:23:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-26 09:27:43 +0000
commit88fcf8422dd04372d73aacfef0ee50de09ef41bd (patch)
tree2984b56895d81600650652d6c0bb704432396fb7 /bitbake/lib/bb/cooker.py
parenta10ac380b781073fc995a3ee245d570f7b49055d (diff)
downloadpoky-88fcf8422dd04372d73aacfef0ee50de09ef41bd.tar.gz
bitbake: cooker/siggen: Support exit calls and use for hashserv client
We have shutdown functions within the async client code but the siggen doesn't currently call them. We notice on python 3.10 (such as on fedora35) that at exit, there is a stray asyncio process left behind. Usually this doesn't cause problems but it could potentially be a cause of a hang. For general cleanliness and completness, add in hooks to call the exit handler. (Bitbake rev: 9ee3fb95330003878fbd64b3ce8897aad96fcd0f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index f79dc2770d..c0a7a2fd79 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1717,6 +1717,7 @@ class BBCooker:
1717 def post_serve(self): 1717 def post_serve(self):
1718 self.shutdown(force=True) 1718 self.shutdown(force=True)
1719 prserv.serv.auto_shutdown() 1719 prserv.serv.auto_shutdown()
1720 bb.parse.siggen.exit()
1720 if self.hashserv: 1721 if self.hashserv:
1721 self.hashserv.process.terminate() 1722 self.hashserv.process.terminate()
1722 self.hashserv.process.join() 1723 self.hashserv.process.join()