diff options
author | Daniel Friesel <derf@finalrewind.org> | 2012-03-14 13:34:48 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2012-03-14 13:34:48 +0100 |
commit | 1f4029b244eef2cd956447cae46ab5a194a8916c (patch) | |
tree | 5d15f9c2a668e810c1e343cf03c33e9fd0578f8f /src/imlib.c | |
parent | 86a6ae59b3b2b63fd71c4668bfcf33d6fea8448b (diff) |
Terminate convert when receiving SIG{INT,TERM,QUIT}
Diffstat (limited to 'src/imlib.c')
-rw-r--r-- | src/imlib.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |