summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/imlib.c4
1 files 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);