On 23/02/2021 15.46, Stefan Hajnoczi wrote:
Add a function to remove previously-added abrt handler functions.

Now that a symmetric pair of add/remove functions exists we can also
balance the SIGABRT handler installation. The signal handler was
installed each time qtest_add_abrt_handler() was called. Now it is
installed when the abrt handler list becomes non-empty and removed again
when the list becomes empty.

The qtest_remove_abrt_handler() function will be used by
vhost-user-blk-test.

Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <waine...@redhat.com>
---
  tests/qtest/libqos/libqtest.h | 18 ++++++++++++++++++
  tests/qtest/libqtest.c        | 35 +++++++++++++++++++++++++++++------
  2 files changed, 47 insertions(+), 6 deletions(-)

Reviewed-by: Thomas Huth <th...@redhat.com>


Reply via email to