microcode/uxsig.c: Handle SIGTERM, SIGQUIT and SIGHUP as if a C-g.
authorMatt Birkholz <matt@birchwood-abbey.net>
Thu, 23 Mar 2017 23:45:31 +0000 (16:45 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Fri, 24 Mar 2017 18:21:37 +0000 (11:21 -0700)
src/microcode/uxsig.c

index bb9d1ceba58ab5caa7e144434bdf5a2ab52432f3..2456c1356a3638d27ccc7d04ec993b2e24fbcd8c 100644 (file)
@@ -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);