Message ID | f0f7bed1291afd63a27f1863901445e6d40c4a09.1741355508.git.steve@sakoman.com |
---|---|
State | New |
Headers | show |
Series | [styhead,2.10,1/4] utils: Print information about lock issue before exiting | expand |
diff --git a/lib/bb/utils.py b/lib/bb/utils.py index 0dfe47dc5..83e832c33 100644 --- a/lib/bb/utils.py +++ b/lib/bb/utils.py @@ -1859,8 +1859,8 @@ def path_is_descendant(descendant, ancestor): # we exit at some point than hang. 5 minutes with no progress means we're probably deadlocked. @contextmanager def lock_timeout(lock): - held = lock.acquire(timeout=5*60) try: + held = lock.acquire(timeout=5*60) 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)