diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-24 17:32:39 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-24 17:48:57 +0100 |
commit | 1c9496797b753e67351bd5cb98ef2b8e9435d51e (patch) | |
tree | 3eb58bfb0b1e23501fac61b1b89df722d3582634 | |
parent | c5fbd8452f87e0a2d234eaf27d0450aacdeb8891 (diff) | |
download | bitbake-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>
-rw-r--r-- | lib/bb/server/process.py | 3 |
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: |