diff --git a/sl.c b/sl.c index e549ac8c..3b0a62d4 100644 --- a/sl.c +++ b/sl.c @@ -90,7 +90,21 @@ int main(int argc, char *argv[]) } } initscr(); + + /* Ignore following signals */ + + /* Interrupt from keyboard, Control-C */ signal(SIGINT, SIG_IGN); + + /* Quit from keyboard, Control-\ */ + signal(SIGQUIT, SIG_IGN); + + /* Stop process execution, Ctrl-Z */ + signal(SIGSTOP, SIG_IGN); + + /* Stop process issued from tty */ + signal(SIGTSTP, SIG_IGN); + noecho(); curs_set(0); nodelay(stdscr, TRUE);