Message ID | 8d40d8cc319674e77dcf4560243feeeccf53bc51.1741206585.git.steve@sakoman.com |
---|---|
State | New |
Headers | show |
Series | [scarthgap,2.8,1/4] utils: Print information about lock issue before exiting | expand |
diff --git a/lib/bb/utils.py b/lib/bb/utils.py index ebee65d3d..0dfe47dc5 100644 --- a/lib/bb/utils.py +++ b/lib/bb/utils.py @@ -1862,6 +1862,7 @@ def lock_timeout(lock): held = lock.acquire(timeout=5*60) try: if not held: + bb.server.process.serverlog("Couldn't get the lock for 5 mins, timed out, exiting.\n%s" % traceback.format_stack()) os._exit(1) yield held finally: