diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-03 11:55:42 +0000 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-03-15 06:40:07 -0700 |
commit | e9aa48f80719bb847ec1a6fb01895223ab47489e (patch) | |
tree | 7f4e4197b44400135cb0b6bd65df7bac895ae2e5 | |
parent | dc4827b3660bc1a03a2bc3b0672615b50e9137ff (diff) | |
download | poky-e9aa48f80719bb847ec1a6fb01895223ab47489e.tar.gz |
bitbake: utils: Print information about lock issue before exiting
(Bitbake rev: d41fad7fadde59dd63647bbbeb074604314bf310)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit cdf6c51a064f8f335c3262b7f102618996f1a229)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | bitbake/lib/bb/utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index ebee65d3dd..0dfe47dc5a 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -1862,6 +1862,7 @@ def lock_timeout(lock): | |||
1862 | held = lock.acquire(timeout=5*60) | 1862 | held = lock.acquire(timeout=5*60) |
1863 | try: | 1863 | try: |
1864 | if not held: | 1864 | if not held: |
1865 | bb.server.process.serverlog("Couldn't get the lock for 5 mins, timed out, exiting.\n%s" % traceback.format_stack()) | ||
1865 | os._exit(1) | 1866 | os._exit(1) |
1866 | yield held | 1867 | yield held |
1867 | finally: | 1868 | finally: |