summaryrefslogtreecommitdiffstats
path: root/lib/hashserv
diff options
context:
space:
mode:
authorJoshua Watt <jpewhacker@gmail.com>2019-09-26 14:23:53 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-27 13:02:06 +0100
commit7c829675581818f92d57056b57fbd3880829b6bd (patch)
tree1feba8885b8ad163b44c58d85a84ad28bf509202 /lib/hashserv
parent9fb862685e5e5a2aa534bc25cab1e4158d708b40 (diff)
downloadbitbake-7c829675581818f92d57056b57fbd3880829b6bd.tar.gz
hashserv: Don't daemonize server process
The hash server process is terminated and waited on with join(), so it should not be a daemon. Daemonizing it cause races with the server cleanup, especially in the selftest because the process may not have terminated and cleanup up its socket before the test cleanup runs and tries to do it. [YOCTO #13542] Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/hashserv')
-rw-r--r--lib/hashserv/tests.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/hashserv/tests.py b/lib/hashserv/tests.py
index 6584ff57b..a5472a996 100644
--- a/lib/hashserv/tests.py
+++ b/lib/hashserv/tests.py
@@ -32,7 +32,6 @@ class TestHashEquivalenceServer(object):
self.server = create_server(self.get_server_addr(), self.dbfile)
self.server_thread = multiprocessing.Process(target=self._run_server)
- self.server_thread.daemon = True
self.server_thread.start()
self.client = create_client(self.server.address)