From 0358cbf937ee73447970546290a01f82c450dab9 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 21 Dec 2015 14:49:18 +0100 Subject: Don't block fatal signals --- src/fastd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/fastd.c b/src/fastd.c index 8580cf2..64bc294 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -108,9 +108,13 @@ static void on_signal(int signo) { /** Installs signal handlers */ static void init_signals(void) { + /* block all non-fatal signals */ sigset_t set; sigfillset(&set); - /* block all signals */ + sigdelset(&set, SIGILL); + sigdelset(&set, SIGABRT); + sigdelset(&set, SIGFPE); + sigdelset(&set, SIGSEGV); pthread_sigmask(SIG_SETMASK, &set, NULL); struct sigaction action = {}; -- cgit v1.2.3