From 6d00101e9dae3b2a5a95d50d99b90f233d7f998b Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Tue, 20 Sep 2005 20:30:15 +0000 Subject: [PATCH] Latest MSVCR80 doesn't tolerate unsupported signal numbers, throwing fatal exceptions. --- crypto/ui/ui_openssl.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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