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-25 18:14:53 +0100 |
commit | 6bab132879c0abf6f2b1670174445766198d3cac (patch) | |
tree | 7ea2ea570bce19bf7f356e3b3f44201d55873e42 /bitbake/lib/bb | |
parent | 4dd9ebd9480d2cce7c4149ff519c718f462a1acd (diff) | |
download | poky-6bab132879c0abf6f2b1670174445766198d3cac.tar.gz |
bitbake: server/process: Log extra threads at exit
Dump info into the logs if there are extra threads left at process exit
time.
(Bitbake rev: 1c9496797b753e67351bd5cb98ef2b8e9435d51e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/server/process.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index 03cdde04ee..915651084e 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py | |||
@@ -233,6 +233,9 @@ class ProcessServer(): | |||
233 | 233 | ||
234 | ready = self.idle_commands(.1, fds) | 234 | ready = self.idle_commands(.1, fds) |
235 | 235 | ||
236 | if len(threading.enumerate()) != 1: | ||
237 | print("More than one thread left?: " + str(threading.enumerate())) | ||
238 | |||
236 | print("Exiting") | 239 | print("Exiting") |
237 | # Remove the socket file so we don't get any more connections to avoid races | 240 | # Remove the socket file so we don't get any more connections to avoid races |
238 | try: | 241 | try: |