From 5f5bc81b3eb740374cef6e9bb4125e038b5add17 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 12 Aug 2019 15:56:20 +0100 Subject: bitbake: cooker: Improve hash server startup code to avoid exit tracebacks At exit the hashserv code was causing tracebacks as join() wasn't being called from the thread that started the process. Ensure that the hashserver is started from the pre_serve hook which is the final thread the cooker runs in. This avoids the traceback at the expense of some horrific poking into data stores which will ultimately need improving through a proper API. (Bitbake rev: 05888700e5f6cba48a26c8a4c447634a28e3baa6) Signed-off-by: Richard Purdie --- bitbake/lib/hashserv/__init__.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake/lib/hashserv') diff --git a/bitbake/lib/hashserv/__init__.py b/bitbake/lib/hashserv/__init__.py index 1d5e08ee5a..55966e748a 100644 --- a/bitbake/lib/hashserv/__init__.py +++ b/bitbake/lib/hashserv/__init__.py @@ -151,6 +151,7 @@ class ThreadedHTTPServer(HTTPServer): signal.signal(signal.SIGTERM, self.sigterm_exception) super().serve_forever() + os._exit(0) def sigterm_exception(self, signum, stackframe): self.server_close() -- cgit v1.2.3-54-g00ecf