Ver código fonte

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>
Richard Purdie 3 anos atrás
pai
commit
1c9496797b
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      lib/bb/server/process.py

+ 3 - 0
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: