summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/utils.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 56894f130f..73b6cb423b 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -497,7 +497,11 @@ def lockfile(name, shared=False, retry=True, block=False):
497 if statinfo.st_ino == statinfo2.st_ino: 497 if statinfo.st_ino == statinfo2.st_ino:
498 return lf 498 return lf
499 lf.close() 499 lf.close()
500 except Exception: 500 except OSError as e:
501 if e.errno == errno.EACCES:
502 logger.error("Unable to acquire lock '%s', %s",
503 e.strerror, name)
504 sys.exit(1)
501 try: 505 try:
502 lf.close() 506 lf.close()
503 except Exception: 507 except Exception: