From ef1a3b08ae08fac44643188da42e4e0009e21f22 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Wed, 24 May 2017 10:14:06 +0200
Subject: [PATCH] suspension: remove a duplicate setting of the HUP and TERM
 handler

This has been done already during signal_init().
---
 src/nano.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/nano.c b/src/nano.c
index 9a6580d1..afaa361f 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -1243,14 +1243,6 @@ RETSIGTYPE do_suspend(int signal)
     /* Restore the old terminal settings. */
     tcsetattr(0, TCSANOW, &oldterm);
 
-    /* Trap SIGHUP and SIGTERM so we can properly deal with them while
-     * suspended. */
-    act.sa_handler = handle_hupterm;
-#ifdef SIGHUP
-    sigaction(SIGHUP, &act, NULL);
-#endif
-    sigaction(SIGTERM, &act, NULL);
-
     /* Do what mutt does: send ourselves a SIGSTOP. */
 #ifdef SIGSTOP
     kill(0, SIGSTOP);
-- 
GitLab