[gegl] magick-load: pass redirect to /dev/null flags to g_spawn_async



commit 2172cf7e8d7e8891ae2053d6eef213d5bef939cb
Author: Øyvind Kolås <pippin gimp org>
Date:   Thu Dec 16 01:49:25 2021 +0100

    magick-load: pass redirect to /dev/null flags to g_spawn_async

 operations/common/magick-load.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/operations/common/magick-load.c b/operations/common/magick-load.c
index 595169115..3de376026 100644
--- a/operations/common/magick-load.c
+++ b/operations/common/magick-load.c
@@ -53,7 +53,8 @@ load_cache (GeglProperties *op_magick_load)
 
       argv[1] = g_strdup_printf ("%s[0]", op_magick_load->path);
       argv[2] = filename;
-      if (!g_spawn_sync (NULL, argv, NULL, G_SPAWN_DEFAULT, 
+      if (!g_spawn_sync (NULL, argv, NULL,
+                         G_SPAWN_STDOUT_TO_DEV_NULL|G_SPAWN_STDERR_TO_DEV_NULL,
                          NULL, NULL, NULL, NULL, NULL, NULL))
         g_warning ("Error executing ImageMagick convert program");
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]