diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-07-17 17:24:17 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-07-17 17:24:17 +0200 |
commit | 9de97b3aa26182a6f5d21a52c8e6f5952ae937c1 (patch) | |
tree | bf8d5bddcdfdd5e71d9754807edc312cc43fec0d /src/signals.c | |
parent | 946c837a9fe78737020ae0d3a7f1b2e7201ae3ff (diff) | |
parent | 00d45a4d00f45ed378ec5b1f5ae002ca918e58be (diff) |
Merge branch 'patch-1' of https://github.com/giladogit/feh into giladogit-patch-1
Diffstat (limited to 'src/signals.c')
-rw-r--r-- | src/signals.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/signals.c b/src/signals.c index c08d5df..262423b 100644 --- a/src/signals.c +++ b/src/signals.c @@ -28,11 +28,13 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "options.h" void feh_handle_signal(int); +int sig_exit; 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 +88,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); |