summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2025-03-03 11:55:42 +0000
committerSteve Sakoman <steve@sakoman.com>2025-03-13 07:21:43 -0700
commitc0432f8eda225aef979a27ac5977e5dd8847f086 (patch)
tree7d61d198136b170e52d597da1de9aa1a364aa1f7
parentb2cf0d5cd0adb73708ce6035ce8611c0bc3860d5 (diff)
downloadpoky-c0432f8eda225aef979a27ac5977e5dd8847f086.tar.gz
bitbake: utils: Print information about lock issue before exiting
(Bitbake rev: bde34a174886161def6f9f2c5194870a4edfefb2) 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.py1
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: