diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-25 09:26:13 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-26 09:27:43 +0000 |
| commit | cff6c1a18d56e20d99d2331704dd490940c386e3 (patch) | |
| tree | 765b9cf848ac149aefc776e08ed31ac14ddca7e5 /bitbake | |
| parent | f0c28dddbe31dac627eaa31ddb1ed21706005a0b (diff) | |
| download | poky-cff6c1a18d56e20d99d2331704dd490940c386e3.tar.gz | |
bitbake: 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.
(Bitbake rev: 1463fc0448d1a6a7265806a4a8b165b610dfb43f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
| -rw-r--r-- | bitbake/lib/bb/server/process.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index 1636616660..efc3f04b4c 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py | |||
| @@ -243,9 +243,6 @@ class ProcessServer(): | |||
| 243 | 243 | ||
| 244 | ready = self.idle_commands(.1, fds) | 244 | ready = self.idle_commands(.1, fds) |
| 245 | 245 | ||
| 246 | if len(threading.enumerate()) != 1: | ||
| 247 | serverlog("More than one thread left?: " + str(threading.enumerate())) | ||
| 248 | |||
| 249 | serverlog("Exiting") | 246 | serverlog("Exiting") |
| 250 | # Remove the socket file so we don't get any more connections to avoid races | 247 | # Remove the socket file so we don't get any more connections to avoid races |
| 251 | try: | 248 | try: |
| @@ -263,6 +260,9 @@ class ProcessServer(): | |||
| 263 | 260 | ||
| 264 | self.cooker.post_serve() | 261 | self.cooker.post_serve() |
| 265 | 262 | ||
| 263 | if len(threading.enumerate()) != 1: | ||
| 264 | serverlog("More than one thread left?: " + str(threading.enumerate())) | ||
| 265 | |||
| 266 | # Flush logs before we release the lock | 266 | # Flush logs before we release the lock |
| 267 | sys.stdout.flush() | 267 | sys.stdout.flush() |
| 268 | sys.stderr.flush() | 268 | sys.stderr.flush() |
