mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-31 11:18:42 +02:00
This commit is contained in:
@@ -125,7 +125,7 @@ MagickExport CacheView *AcquireAuthenticCacheView(const Image *image)
|
||||
{
|
||||
CatchException(exception);
|
||||
MagickCoreTerminus();
|
||||
_exit(1);
|
||||
_exit(CacheFatalError);
|
||||
}
|
||||
exception=DestroyExceptionInfo(exception);
|
||||
return(cache_view);
|
||||
|
||||
@@ -49,7 +49,7 @@ extern "C" {
|
||||
CatchException(&exception); \
|
||||
(void) DestroyExceptionInfo(&exception); \
|
||||
MagickCoreTerminus(); \
|
||||
_exit(1); \
|
||||
_exit(severity); \
|
||||
}
|
||||
#define ThrowFileException(exception,severity,tag,context) \
|
||||
{ \
|
||||
|
||||
@@ -325,14 +325,12 @@ static void DefaultErrorHandler(const ExceptionType magick_unused(severity),
|
||||
%
|
||||
% o severity: Specifies the numeric error category.
|
||||
%
|
||||
% o reason: Specifies the reason to display before terminating the
|
||||
% program.
|
||||
% o reason: Specifies the reason to display before terminating the program.
|
||||
%
|
||||
% o description: Specifies any description to the reason.
|
||||
%
|
||||
*/
|
||||
static void DefaultFatalErrorHandler(
|
||||
const ExceptionType magick_unused(severity),
|
||||
static void DefaultFatalErrorHandler(const ExceptionType severity,
|
||||
const char *reason,const char *description)
|
||||
{
|
||||
if (reason == (char *) NULL)
|
||||
@@ -343,7 +341,7 @@ static void DefaultFatalErrorHandler(
|
||||
(void) FormatLocaleFile(stderr,".\n");
|
||||
(void) fflush(stderr);
|
||||
MagickCoreTerminus();
|
||||
exit(1);
|
||||
exit(severity);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -153,8 +153,8 @@ extern MagickExport FatalErrorHandler
|
||||
extern MagickExport MagickBooleanType
|
||||
ThrowException(ExceptionInfo *,const ExceptionType,const char *,
|
||||
const char *),
|
||||
ThrowMagickExceptionList(ExceptionInfo *,const char *,const char *,const size_t,
|
||||
const ExceptionType,const char *,const char *,va_list),
|
||||
ThrowMagickExceptionList(ExceptionInfo *,const char *,const char *,
|
||||
const size_t,const ExceptionType,const char *,const char *,va_list),
|
||||
ThrowMagickException(ExceptionInfo *,const char *,const char *,const size_t,
|
||||
const ExceptionType,const char *,const char *,...)
|
||||
magick_attribute((__format__ (__printf__,7,8)));
|
||||
|
||||
Reference in New Issue
Block a user