From c98a9be2ccd6b339cac43086b859fa579b40e0bd Mon Sep 17 00:00:00 2001 From: David Griffith Date: Tue, 31 Dec 2013 02:18:09 -0800 Subject: [PATCH] Signal sanity. --- src/curses/ux_init.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/curses/ux_init.c b/src/curses/ux_init.c index 0ec7bee..9d82ffd 100644 --- a/src/curses/ux_init.c +++ b/src/curses/ux_init.c @@ -187,6 +187,13 @@ void os_process_arguments (int argc, char *argv[]) if (signal(SIGINT, SIG_IGN) != SIG_IGN) signal(SIGINT, sigint_handler); + if (signal(SIGTTIN, SIG_IGN) != SIG_IGN) + signal(SIGTTIN, SIG_IGN); + + if (signal(SIGTTOU, SIG_IGN) != SIG_IGN) + signal(SIGTTOU, SIG_IGN); + + /* First check for a "$HOME/.frotzrc". */ /* If not found, look for CONFIG_DIR/frotz.conf */ /* $HOME/.frotzrc overrides CONFIG_DIR/frotz.conf */ @@ -872,12 +879,14 @@ void sigint_handler(int dummy) { signal(SIGINT, sigint_handler); + os_stop_sample(0); scrollok(stdscr, TRUE); scroll(stdscr); refresh(); endwin(); exit(1); } + void redraw(void) { /* not implemented */ -- 2.34.1