aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-06-28 17:21:21 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-06-28 19:13:29 +0200
commitbe584a083ec37786e2e16cd8483fb447b565df1e (patch)
tree1d72a4b59c021cd1d381fd2557596bf27f1adfc5
parentb04cdd61fbeb8502125b416e048f0b6e239369e7 (diff)
handle more exceptionnal signals
Change-Id: I956cda0a437c782b1b39689330429bcba06c1804 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/sig-monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sig-monitor.c b/src/sig-monitor.c
index fdaf8c09..bd1311a9 100644
--- a/src/sig-monitor.c
+++ b/src/sig-monitor.c
@@ -171,8 +171,8 @@ static int install(void (*handler)(int), int *signals)
int sig_monitor_init()
{
- static int sigerr[] = { SIG_FOR_TIMER, SIGSEGV, SIGFPE, 0 };
- static int sigterm[] = { SIGINT, SIGABRT, 0 };
+ static int sigerr[] = { SIG_FOR_TIMER, SIGSEGV, SIGFPE, SIGILL, SIGBUS, 0 };
+ static int sigterm[] = { SIGINT, SIGABRT, SIGTERM, 0 };
return (install(on_signal_error, sigerr) & install(on_signal_terminate, sigterm)) - 1;
}