diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-07 14:14:46 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-08 21:53:15 +0100 |
commit | 5940020cfb721d79111072b3cd5d581fff59561b (patch) | |
tree | 915a192e81d9d0ef5b263cf32291136363a1df9d /bitbake/lib/bb/daemonize.py | |
parent | 96e34de6f0c485307d1018910bca642d3cdb58e9 (diff) | |
download | poky-5940020cfb721d79111072b3cd5d581fff59561b.tar.gz |
bitbake: server/process: Avoid risk of exception deadlocks
The open coded lock acquire/release in the UI event handler doesn't
cover the case an exception occurs and if one did, it could deadlock
the code. Switch to use 'with' statements which would handle this
possibility.
We have seen deadlocks in the UI at exit this so this removes a
possible cause.
(Bitbake rev: bd12792f28efd2f03510653ec947ebf961315272)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/daemonize.py')
0 files changed, 0 insertions, 0 deletions