summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/utils.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-10-11 11:58:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-10-11 12:17:36 +0100
commitba2fcb968e43bce93a7beb1c5fd9d671460f9fca (patch)
tree8c71e0cb9abcbacb9883e78dbeeabc99dd85d81a /bitbake/lib/bb/utils.py
parent39400c4a2b930be505a417d30445e0ae21af459d (diff)
downloadpoky-ba2fcb968e43bce93a7beb1c5fd9d671460f9fca.tar.gz
bitbake: utils: Improve multiple lock handling
We should release locks in the opposite order to the order we locked them in to avoid potentially problematic behaviour. This hasn't been observed with our current usage and is just a preventative improvement. (Bitbake rev: 4fbef87adaca2df8c1e877aec5588c2e5466f252) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r--bitbake/lib/bb/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index ebee65d3dd..e722f9113d 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -446,6 +446,7 @@ def fileslocked(files, *args, **kwargs):
446 try: 446 try:
447 yield 447 yield
448 finally: 448 finally:
449 locks.reverse()
449 for lock in locks: 450 for lock in locks:
450 bb.utils.unlockfile(lock) 451 bb.utils.unlockfile(lock)
451 452