From 338553950063615b59d80d2148d208b490c3d0bd Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 15 Mar 2012 21:07:50 +0100 Subject: feh_magick_load_image: close stdin as well --- src/imlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/imlib.c b/src/imlib.c index 090159c..eda3e2a 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -286,14 +286,14 @@ static char *feh_magick_load_image(char *filename) /* discard convert output */ devnull = open("/dev/null", O_WRONLY); + dup2(devnull, 0); dup2(devnull, 1); dup2(devnull, 2); /* * convert only accepts SIGINT via killpg, a normal kill doesn't work */ - if (opt.magick_timeout) - setpgid(0, 0); + setpgid(0, 0); execlp("convert", "convert", filename, argv_fd, NULL); exit(1); -- cgit v1.2.3