From: Cristy Date: Fri, 22 Sep 2017 11:05:49 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-4~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c29cadf7064d38dc49e8c5bd96ae011fdb1fda69;p=imagemagick ... --- diff --git a/MagickCore/magick.c b/MagickCore/magick.c index 462e046dd..e6a839dc0 100644 --- a/MagickCore/magick.c +++ b/MagickCore/magick.c @@ -1337,6 +1337,10 @@ static void MagickSignalHandler(int signal_number) if (signal_number == SIGABRT) abort(); #endif +#if defined(SIGBUS) + if (signal_number == SIGBUS) + abort(); +#endif #if defined(SIGFPE) if (signal_number == SIGFPE) abort(); @@ -1364,8 +1368,8 @@ static void MagickSignalHandler(int signal_number) if (signal_number == SIGINT) _exit(signal_number); #endif -#if defined(SIGTERM) - if (signal_number == SIGTERM) +#if defined(SIGBUS) + if (signal_number == SIGBUS) _exit(signal_number); #endif #if defined(MAGICKCORE_HAVE_RAISE) @@ -1448,6 +1452,10 @@ MagickExport void MagickCoreGenesis(const char *path, if (signal_handlers[SIGABRT] == (SignalHandler *) NULL) signal_handlers[SIGABRT]=RegisterMagickSignalHandler(SIGABRT); #endif +#if defined(SIGBUS) + if (signal_handlers[SIGBUS] == (SignalHandler *) NULL) + signal_handlers[SIGBUS]=RegisterMagickSignalHandler(SIGBUS); +#endif #if defined(SIGSEGV) if (signal_handlers[SIGSEGV] == (SignalHandler *) NULL) signal_handlers[SIGSEGV]=RegisterMagickSignalHandler(SIGSEGV);