martinpitt / umockdev

Mock hardware devices for creating unit tests and bug reporting
https://launchpad.net/umockdev
GNU Lesser General Public License v2.1
308 stars 55 forks source link

preload: Disable signals before locking #192

Closed benzea closed 2 years ago

benzea commented 2 years ago

Having signals enabled while holding a lock is messy as certain recursions may occur. As such, disable signals before taking the mutex and release signals again afterwards.

martinpitt commented 2 years ago

Thank you! This looks good, the ubuntu:devel unit test started to fail on main 6 days ago on its own, apparently the new meson version broke stuff again. I'll look at that first, and then rebase your branch.