clib: add signal 'SIGBUS' for compatibility with MAC
authorJean-Sebastien Gelinas <calestar@gmail.com>
Sat, 11 Jul 2009 05:01:42 +0000 (01:01 -0400)
committerJean Privat <jean@pryen.org>
Tue, 14 Jul 2009 13:15:26 +0000 (09:15 -0400)
Signed-off-by: Jean-Sebastien Gelinas <calestar@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>

lib/nit_main.c

index 86ddd7c..d20e393 100644 (file)
@@ -52,6 +52,7 @@ void prepare_signals(void) {
        signal(SIGILL, exithandler);
        signal(SIGFPE, exithandler);
        signal(SIGTERM,exithandler);
+       signal(SIGBUS, exithandler);
 }
 struct trace_t *tracehead = NULL;
 void nit_exit(int i) {