aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog6
-rw-r--r--src/sman/sman.c8
2 files changed, 14 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 40a75581..6979add0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
+2008-03-26 Waldek Hebisch <hebisch@math.uni.wroc.pl>
+ Alfredo Portes <doyenatccny@gmail.com>
+
+ * src/sman/sman.c.pamphlet: sman_catch_signals(): Use SIGABRT
+ (instead of SIGIOT) if available.
+
2008-03-26 Gabriel Dos Reis <gdr@cs.tamu.edu>
* lib/Makefile.in: Explicitly build both static and shared version
diff --git a/src/sman/sman.c b/src/sman/sman.c
index 41beebba..d4136afd 100644
--- a/src/sman/sman.c
+++ b/src/sman/sman.c
@@ -256,7 +256,15 @@ sman_catch_signals(void)
bsdSignal(SIGHUP, death_handler,RestartSystemCalls);
bsdSignal(SIGILL, death_handler,RestartSystemCalls);
bsdSignal(SIGTRAP, death_handler,RestartSystemCalls);
+
+#ifdef SIGABRT
+ bsdSignal(SIGABRT, death_handler,RestartSystemCalls);
+#else
+ #ifdef SIGIOT
bsdSignal(SIGIOT, death_handler,RestartSystemCalls);
+ #endif
+#endif
+
bsdSignal(SIGBUS, death_handler,RestartSystemCalls);
bsdSignal(SIGSEGV, death_handler,RestartSystemCalls);