From 022f30ff0da2d6895ee5175a42af9ff824a061a7 Mon Sep 17 00:00:00 2001 From: alfredoport Date: Wed, 26 Mar 2008 15:23:08 +0000 Subject: Use SIGABRT instead of SIGIOT if available (Cygwin) --- src/sman/sman.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/sman') 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); -- cgit v1.2.3