qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 04/12] libqtest: add qtest_remove_abrt_handler()


From: Thomas Huth
Subject: Re: [PATCH v3 04/12] libqtest: add qtest_remove_abrt_handler()
Date: Mon, 8 Mar 2021 07:44:10 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0

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 <stefanha@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
---
  tests/qtest/libqos/libqtest.h | 18 ++++++++++++++++++
  tests/qtest/libqtest.c        | 35 +++++++++++++++++++++++++++++------
  2 files changed, 47 insertions(+), 6 deletions(-)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]