Commit bbf49428 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Restore SIGSEGV and SIGABRT to SIG_DFL in child_signal_handler()

to prevent recursion.
parent 78be3917
......@@ -263,9 +263,16 @@ static void __match_proto__()
child_signal_handler(int s, siginfo_t *si, void *c)
{
char buf[1024];
struct sigaction sa;
(void)c;
/* Don't come back */
memset(&sa, 0, sizeof sa);
sa.sa_handler = SIG_DFL;
(void)sigaction(SIGSEGV, &sa, NULL);
(void)sigaction(SIGABRT, &sa, NULL);
bprintf(buf, "Signal %d (%s) received at %p si_code %d",
s, strsignal(s), si->si_addr, si->si_code);
VAS_Fail(__func__,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment