diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-21 15:14:37 +0000 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-01-31 04:10:24 -1000 |
commit | f890240f06056ee25f3d364fa23f1456b8c1c8c2 (patch) | |
tree | 5414aba413f8aa5e07027898b1e2521976a4958b /scripts/lib/devtool/runqemu.py | |
parent | 8de5dd79c0d1ebbe3581c564849ef34c4b7470e0 (diff) | |
download | poky-f890240f06056ee25f3d364fa23f1456b8c1c8c2.tar.gz |
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.
(From OE-Core rev: 4e3c9526c2389fd08d86d986014313e1d404f1fb)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4e59db15e5df2cc3d0ae042454812a2d54cef77b)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts/lib/devtool/runqemu.py')
0 files changed, 0 insertions, 0 deletions