make the sighandler handle SIGABRT

This commit is contained in:
Michael Stapelberg 2011-01-28 00:47:49 +01:00
parent f395c141c8
commit 5b6ef3e665

View File

@ -220,6 +220,7 @@ void setup_signal_handler() {
sigemptyset(&action.sa_mask); sigemptyset(&action.sa_mask);
if (sigaction(SIGSEGV, &action, NULL) == -1 || if (sigaction(SIGSEGV, &action, NULL) == -1 ||
sigaction(SIGABRT, &action, NULL) == -1 ||
sigaction(SIGFPE, &action, NULL) == -1) sigaction(SIGFPE, &action, NULL) == -1)
ELOG("Could not setup signal handler"); ELOG("Could not setup signal handler");
} }