summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-24 17:32:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-24 17:48:57 +0100
commit1c9496797b753e67351bd5cb98ef2b8e9435d51e (patch)
tree3eb58bfb0b1e23501fac61b1b89df722d3582634 /lib
parentc5fbd8452f87e0a2d234eaf27d0450aacdeb8891 (diff)
downloadbitbake-1c9496797b753e67351bd5cb98ef2b8e9435d51e.tar.gz
server/process: Log extra threads at exit
Dump info into the logs if there are extra threads left at process exit time. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/server/process.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index 03cdde04e..915651084 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -233,6 +233,9 @@ class ProcessServer():
ready = self.idle_commands(.1, fds)
+ if len(threading.enumerate()) != 1:
+ print("More than one thread left?: " + str(threading.enumerate()))
+
print("Exiting")
# Remove the socket file so we don't get any more connections to avoid races
try: