diff options
author | alfredoport <doyenatccny@gmail.com> | 2008-03-26 15:23:08 +0000 |
---|---|---|
committer | alfredoport <doyenatccny@gmail.com> | 2008-03-26 15:23:08 +0000 |
commit | 022f30ff0da2d6895ee5175a42af9ff824a061a7 (patch) | |
tree | 4d48b886bcaea51049e21c675e2c740bc4cdcda2 /src | |
parent | ed37d1f407fdde15915216420cc6e846c2e4760b (diff) | |
download | open-axiom-022f30ff0da2d6895ee5175a42af9ff824a061a7.tar.gz |
Use SIGABRT instead of SIGIOT if available (Cygwin)
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 6 | ||||
-rw-r--r-- | src/sman/sman.c | 8 |
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); |