[libvirt] [PATCH 04/14] Ensure signal handler propagates fatal signals to default handler

Eric Blake eblake at redhat.com
Fri Jul 8 22:23:23 UTC 2011

On 07/07/2011 08:17 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> When replacing the default SEGV/ABORT/BUS signal handlers you
> can't rely on the process being terminated after your custom
> handler runs. It is neccessary to manually restore the default


> handler and then re-raise the signal
> * src/rpc/virnetserver.c: Restore default handler and raise
>   signal
> ---
>  src/rpc/virnetserver.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)


There's a gnulib module for raise() which we are not using, but that
module says it is only needed for _really_ old platforms (even mingw
already has raise), so I don't think we need to worry about using it.

Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110708/f085534c/attachment-0001.sig>

More information about the libvir-list mailing list