diff --git a/osdep/terminal-unix.c b/osdep/terminal-unix.c index b777104d6b..cb92dfc664 100644 --- a/osdep/terminal-unix.c +++ b/osdep/terminal-unix.c @@ -492,8 +492,8 @@ void terminal_setup_getch(struct input_ctx *ictx) } setsigaction(SIGINT, quit_request_sighandler, SA_RESETHAND, false); - setsigaction(SIGQUIT, quit_request_sighandler, SA_RESETHAND, false); - setsigaction(SIGTERM, quit_request_sighandler, SA_RESETHAND, false); + setsigaction(SIGQUIT, quit_request_sighandler, 0, true); + setsigaction(SIGTERM, quit_request_sighandler, 0, true); } void terminal_uninit(void)