From 1f4029b244eef2cd956447cae46ab5a194a8916c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 14 Mar 2012 13:34:48 +0100 Subject: Terminate convert when receiving SIG{INT,TERM,QUIT} --- src/imlib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/imlib.c') diff --git a/src/imlib.c b/src/imlib.c index d83cc08..090159c 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -59,7 +59,7 @@ int xinerama_screen; int num_xinerama_screens; #endif /* HAVE_LIBXINERAMA */ -int childpid; +int childpid = 0; static char *feh_http_load_image(char *url); static char *feh_magick_load_image(char *filename); @@ -327,6 +327,7 @@ static char *feh_magick_load_image(char *filename) */ waitpid(-1, &status, 0); } + childpid = 0; } return sfn; -- cgit v1.2.3