From 9bde3a460a24ae63fcd7bf68612ba0fc683786c6 Mon Sep 17 00:00:00 2001 From: giladogit <32686842+giladogit@users.noreply.github.com> Date: Fri, 6 Jul 2018 17:19:13 -0700 Subject: Update signals.c See issue #405 --- src/signals.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/signals.c b/src/signals.c index c08d5df..97192fa 100644 --- a/src/signals.c +++ b/src/signals.c @@ -33,6 +33,7 @@ void setup_signal_handlers() { struct sigaction feh_sh; sigset_t feh_ss; + sig_exit = 0; if ( (sigemptyset(&feh_ss) == -1) || (sigaddset(&feh_ss, SIGUSR1) == -1) || @@ -86,7 +87,7 @@ void feh_handle_signal(int signo) case SIGQUIT: if (childpid) killpg(childpid, SIGINT); - exit(128 + signo); + sig_exit = 128 + signo; } winwid = winwidget_get_first_window_of_type(WIN_TYPE_SLIDESHOW); -- cgit v1.2.3