Fix infinite loop while trying to lock file on name too long error
PATCH 1/1 Fix infinite loop while trying to lock file on name too long error
During a call of lockfile the open go on error and generate an infinite
loop of bitbake.
open("...._deploy_source_date_epoch.tgz.siginfo.lock", O_RDWR|O_CREAT|O_APPEND|O_CLOEXEC, 0666) = -1 ENAMETOOLONG (File name too long)
Signed-off-by Christophe Priouzeau <[email protected]>
Signed-off-by Christophe Guillon <[email protected]>
--- lib/bb/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/utils.py +1 -1
@@ -494,7 +494,7 @@ def lockfile(name, shared=False, retry=True, block=False): return lf lf.close() except OSError as e: - if e.errno == errno.EACCES: + if e.errno == errno.EACCES or e.errno == errno.ENAMETOOLONG: logger.error("Unable to acquire lock '%s', %s", e.strerror, name) sys.exit(1)
Signature · 1 line
2.17.1