]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 11 Jan 2013 12:14:51 +0000 (12:14 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 11 Jan 2013 12:14:51 +0000 (12:14 +0000)
MagickCore/distribute-cache.c
MagickCore/distribute-cache.h
MagickWand/mogrify.c

index 4ebc73863e4e9055796c1aeba342eef5510eef7f..ab29a032bcfe2de022e97b647043f8358c659a04 100644 (file)
@@ -167,8 +167,10 @@ MagickPrivate DistributeCacheInfo *DestroyDistributeCacheInfo(
 %
 %    o port: connect the distributed pixel cache at this port.
 %
+%    o exception: return any errors or warnings in this structure.
+%
 */
-MagickExport void PixelCacheServer(const size_t port)
+MagickExport void PixelCacheServer(const size_t port,ExceptionInfo *exception)
 {
 #if defined(MAGICKCORE_HAVE_SOCKET) && defined(MAGICKCORE_HAVE_PTHREAD)
   char
@@ -250,6 +252,7 @@ MagickExport void PixelCacheServer(const size_t port)
   }
 #else
   (void) ThrowMagickException(exception,GetMagickModule(),MissingDelegateError,
-    "DelegateLibrarySupportNotBuiltIn","'%s' (socket)",image_info->filename);
+    "DelegateLibrarySupportNotBuiltIn","'%s' (socket)",
+    "distributed pixel cache");
 #endif
 }
index 6838e4d0a7c96c4e7c8b0c408a6b88f29c0c007b..669f462890634fb797a9e87e85882166d0a7288e 100644 (file)
 extern "C" {
 #endif
 
+#include <MagickCore/exception.h>
+
 extern MagickExport void
-  PixelCacheServer(const size_t);
+  PixelCacheServer(const size_t,ExceptionInfo *);
 
 #if defined(__cplusplus) || defined(c_plusplus)
 }
index 5362bc15f32c42ff4353f6426eef365c81387bc2..3c9fbf3cd38baaffcfd3fb67c4d22f3dcb427d7b 100644 (file)
@@ -154,7 +154,7 @@ WandExport MagickBooleanType MagickCommandGenesis(ImageInfo *image_info,
       (void) SetLogEventMask(argv[++i]);
     if (LocaleCompare("-distribute-cache",option) == 0)
       {
-        PixelCacheServer(StringToUnsignedLong(argv[++i]));
+        PixelCacheServer(StringToUnsignedLong(argv[++i]),exception);
         exit(0);
       }
     if (LocaleCompare("-duration",option) == 0)