From: Andy Polyakov Date: Tue, 20 Sep 2005 20:30:15 +0000 (+0000) Subject: Latest MSVCR80 doesn't tolerate unsupported signal numbers, throwing X-Git-Tag: OpenSSL_0_9_8k^2~1798 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6d00101e9dae3b2a5a95d50d99b90f233d7f998b;p=oweals%2Fopenssl.git Latest MSVCR80 doesn't tolerate unsupported signal numbers, throwing fatal exceptions. --- diff --git a/crypto/ui/ui_openssl.c b/crypto/ui/ui_openssl.c index 7c80f5feb2..f186a714dc 100644 --- a/crypto/ui/ui_openssl.c +++ b/crypto/ui/ui_openssl.c @@ -586,6 +586,14 @@ static void pushsig(void) sa.sa_handler=recsig; #endif +#ifdef OPENSSL_SYS_WIN32 + savsig[SIGABRT]=signal(SIGABRT,recsig); + savsig[SIGFPE]=signal(SIGFPE,recsig); + savsig[SIGILL]=signal(SIGILL,recsig); + savsig[SIGINT]=signal(SIGINT,recsig); + savsig[SIGSEGV]=signal(SIGSEGV,recsig); + savsig[SIGTERM]=signal(SIGTERM,recsig); +#else for (i=1; i