summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-06-20 00:08:13 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-06-20 00:08:13 +0200
commit379fcf569fe558550462fabe09ef3a549b252d3d (patch)
treec598545888a10eae1024c4ca0bd704b928347ef4 /src
parent18df9d425de9121fa3f159709792b9b79bf2c5df (diff)
imlib.c: Do not call atexit hooks when terminating a child process (closes #245)
Diffstat (limited to 'src')
-rw-r--r--src/imlib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/imlib.c b/src/imlib.c
index d497311..e8b3b3d 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -326,7 +326,7 @@ static char *feh_magick_load_image(char *filename)
setpgid(0, 0);
execlp("convert", "convert", filename, argv_fd, NULL);
- exit(1);
+ _exit(1);
}
else {
alarm(opt.magick_timeout);
@@ -1180,8 +1180,8 @@ void feh_edit_inplace_lossless(winwidget w, int op)
execlp("jpegtran", "jpegtran", "-copy", "all", op_op, op_value,
"-outfile", file_str, file_str, NULL);
- im_weprintf(w, "lossless %s: Is 'jpegtran' installed? Failed to exec:", op_name);
- exit(1);
+ weprintf("lossless %s: Is 'jpegtran' installed? Failed to exec:", op_name);
+ _exit(1);
}
else {
waitpid(pid, &status, 0);
@@ -1207,8 +1207,8 @@ void feh_edit_inplace_lossless(winwidget w, int op)
dup2(devnull, 1);
execlp("jpegexiforient", "jpegexiforient", "-1", file_str, NULL);
- im_weprintf(w, "lossless %s: Failed to exec jpegexiforient:", op_name);
- exit(1);
+ weprintf("lossless %s: Failed to exec jpegexiforient:", op_name);
+ _exit(1);
}
else {
waitpid(pid, &status, 0);