From ad9c7d0fc785747a97af8d56597c9da57ed8e804 Mon Sep 17 00:00:00 2001 From: cristy Date: Tue, 8 Jan 2013 02:03:52 +0000 Subject: [PATCH] --- MagickCore/magick.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MagickCore/magick.c b/MagickCore/magick.c index 7db4a4757..3a24e6055 100644 --- a/MagickCore/magick.c +++ b/MagickCore/magick.c @@ -1152,10 +1152,6 @@ static void MagickSignalHandler(int signal_number) AsynchronousResourceComponentTerminus(); instantiate_magick=MagickFalse; (void) SetMagickSignalHandler(signal_number,signal_handlers[signal_number]); -#if defined(MAGICKCORE_HAVE_RAISE) - if (signal_handlers[signal_number] != MagickSignalHandler) - raise(signal_number); -#endif #if defined(SIGQUIT) if (signal_number == SIGQUIT) abort(); @@ -1194,6 +1190,10 @@ static void MagickSignalHandler(int signal_number) #if defined(SIGTERM) if (signal_number == SIGTERM) exit(signal_number); +#endif +#if defined(MAGICKCORE_HAVE_RAISE) + if (signal_handlers[signal_number] != MagickSignalHandler) + raise(signal_number); #endif _exit(signal_number); /* do not invoke registered atexit() methods */ #endif -- 2.40.0