diff options
-rw-r--r-- | bitbake/lib/bb/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index da8c20fe95..992e200641 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -1881,8 +1881,8 @@ def path_is_descendant(descendant, ancestor): | |||
1881 | # we exit at some point than hang. 5 minutes with no progress means we're probably deadlocked. | 1881 | # we exit at some point than hang. 5 minutes with no progress means we're probably deadlocked. |
1882 | @contextmanager | 1882 | @contextmanager |
1883 | def lock_timeout(lock): | 1883 | def lock_timeout(lock): |
1884 | held = lock.acquire(timeout=5*60) | ||
1885 | try: | 1884 | try: |
1885 | held = lock.acquire(timeout=5*60) | ||
1886 | if not held: | 1886 | if not held: |
1887 | bb.server.process.serverlog("Couldn't get the lock for 5 mins, timed out, exiting.\n%s" % traceback.format_stack()) | 1887 | bb.server.process.serverlog("Couldn't get the lock for 5 mins, timed out, exiting.\n%s" % traceback.format_stack()) |
1888 | os._exit(1) | 1888 | os._exit(1) |