This commit is contained in:
cristy
2012-12-13 15:20:26 +00:00
parent 8ed60113be
commit b200b6c973
4 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ MagickExport CacheView *AcquireAuthenticCacheView(const Image *image)
{
CatchException(exception);
MagickCoreTerminus();
_exit(1);
_exit(CacheFatalError);
}
exception=DestroyExceptionInfo(exception);
return(cache_view);
+1 -1
View File
@@ -49,7 +49,7 @@ extern "C" {
CatchException(&exception); \
(void) DestroyExceptionInfo(&exception); \
MagickCoreTerminus(); \
_exit(1); \
_exit(severity); \
}
#define ThrowFileException(exception,severity,tag,context) \
{ \
+3 -5
View File
@@ -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);
}
/*
+2 -2
View File
@@ -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)));