aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/server/process.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-25 09:26:13 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-26 09:26:11 +0000
commit1463fc0448d1a6a7265806a4a8b165b610dfb43f (patch)
tree8a27fa6911b3f7bd9e7c9e57ef85b1454477d3ef /lib/bb/server/process.py
parent770b4ea81b6126b0830e51649c40f7a46c64132a (diff)
downloadbitbake-1463fc0448d1a6a7265806a4a8b165b610dfb43f.tar.gz
server/process: Move threads left debug to after cooker shutdown
This debug is useful but the cooker shutdown or post_serve() may have cleanup left so run after those. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/server/process.py')
-rw-r--r--lib/bb/server/process.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index 163661666..efc3f04b4 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -243,9 +243,6 @@ class ProcessServer():
ready = self.idle_commands(.1, fds)
- if len(threading.enumerate()) != 1:
- serverlog("More than one thread left?: " + str(threading.enumerate()))
-
serverlog("Exiting")
# Remove the socket file so we don't get any more connections to avoid races
try:
@@ -263,6 +260,9 @@ class ProcessServer():
self.cooker.post_serve()
+ if len(threading.enumerate()) != 1:
+ serverlog("More than one thread left?: " + str(threading.enumerate()))
+
# Flush logs before we release the lock
sys.stdout.flush()
sys.stderr.flush()