]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Fri, 22 Sep 2017 11:19:35 +0000 (07:19 -0400)
committerCristy <urban-warrior@imagemagick.org>
Fri, 22 Sep 2017 11:19:35 +0000 (07:19 -0400)
MagickCore/cache.c

index 9349d15fd888610915a76a9f9fef16ce2afb4261..1c51e4e82cbf526f7f759c2d5868b7bd307e9aa1 100644 (file)
@@ -3291,21 +3291,6 @@ MagickPrivate const Quantum *GetVirtualPixelsNexus(const Cache cache,
 %
 */
 
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
-#if defined(SIGBUS)
-static void CacheSignalHandler(int status)
-{
-  ThrowFatalException(CacheFatalError,"UnableToExtendPixelCache");
-}
-#endif
-
-#if defined(__cplusplus) || defined(c_plusplus)
-}
-#endif
-
 static MagickBooleanType OpenPixelCacheOnDisk(CacheInfo *cache_info,
   const MapMode mode)
 {
@@ -3428,9 +3413,6 @@ static MagickBooleanType SetPixelCacheExtent(Image *image,MagickSizeType length)
 #if defined(MAGICKCORE_HAVE_POSIX_FALLOCATE)
       if (cache_info->synchronize != MagickFalse)
         (void) posix_fallocate(cache_info->file,offset+1,extent-offset);
-#endif
-#if defined(SIGBUS)
-      (void) signal(SIGBUS,CacheSignalHandler);
 #endif
     }
   offset=(MagickOffsetType) lseek(cache_info->file,0,SEEK_SET);