Message ID | 1636826280-19035-1-git-send-email-mark.hatle@kernel.crashing.org |
---|---|
State | New |
Headers | show |
Series | utils.py: lockfile(): Catch ENAMETOOLONG | expand |
diff --git a/lib/bb/utils.py b/lib/bb/utils.py index 7063491..0343b08 100644 --- a/lib/bb/utils.py +++ b/lib/bb/utils.py @@ -487,7 +487,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)