]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
lib/prservice: Improve lock handling robustness
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Dec 2023 15:14:37 +0000 (15:14 +0000)
committerSteve Sakoman <steve@sakoman.com>
Fri, 26 Jan 2024 14:58:49 +0000 (04:58 -1000)
commit4e3c9526c2389fd08d86d986014313e1d404f1fb
treefeda8f4f6a8157117d2e34313685e426d9b48340
parenta681f90caec27d4076bdae3b5b19df2d7f5978cd
lib/prservice: Improve lock handling robustness

It is possible we could crash holding a lock whilst parsing in this code.
Switch to use utils.fileslocked() in the with expression to avoid this.

This may be causing some of our strange intermittent failures in PRServ
tests.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4e59db15e5df2cc3d0ae042454812a2d54cef77b)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oe/prservice.py