From a2ca80acada2b0d70b3d8af2fe14d6b6ea9f6e24 Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Thu, 23 Mar 2017 16:45:31 -0700 Subject: [PATCH] microcode/uxsig.c: Handle SIGTERM, SIGQUIT and SIGHUP as if a C-g. --- src/microcode/uxsig.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/microcode/uxsig.c b/src/microcode/uxsig.c index bb9d1ceba..2456c1356 100644 --- a/src/microcode/uxsig.c +++ b/src/microcode/uxsig.c @@ -681,6 +681,9 @@ UX_initialize_signals (void) #endif bind_handler (SIGALRM, sighnd_timer); bind_handler (SIGVTALRM, sighnd_timer); + bind_handler (SIGTERM, sighnd_control_g); + bind_handler (SIGQUIT, sighnd_control_g); + bind_handler (SIGHUP, sighnd_control_g); bind_handler (SIGUSR1, sighnd_save_then_terminate); #ifdef HAVE_NICE bind_handler (SIGUSR2, sighnd_renice); -- 2.25.1