Unverified Commit 9bde3a46 authored by giladogit's avatar giladogit Committed by GitHub
Browse files

Update signals.c

See issue #405
parent 91cecf5d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);