aboutsummaryrefslogtreecommitdiff
path: root/src/sman
diff options
context:
space:
mode:
authoralfredoport <doyenatccny@gmail.com>2008-03-26 15:23:08 +0000
committeralfredoport <doyenatccny@gmail.com>2008-03-26 15:23:08 +0000
commit022f30ff0da2d6895ee5175a42af9ff824a061a7 (patch)
tree4d48b886bcaea51049e21c675e2c740bc4cdcda2 /src/sman
parented37d1f407fdde15915216420cc6e846c2e4760b (diff)
downloadopen-axiom-022f30ff0da2d6895ee5175a42af9ff824a061a7.tar.gz
Use SIGABRT instead of SIGIOT if available (Cygwin)
Diffstat (limited to 'src/sman')
-rw-r--r--src/sman/sman.c8
1 files changed, 8 insertions, 0 deletions
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);