From 8f67d52d72b219a04632eccff758579430d5161a Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Mon, 27 Jan 2003 16:38:09 +0000 Subject: [PATCH] 18144: no SIGHUP handler if parent was ignoring. --- Src/init.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Src/init.c b/Src/init.c index 16965e019..939c4619f 100644 --- a/Src/init.c +++ b/Src/init.c @@ -897,7 +897,10 @@ init_signals(void) signal_ignore(SIGQUIT); #endif - install_handler(SIGHUP); + if (signal_ignore(SIGHUP) == SIG_IGN) + opts[HUP] = 0; + else + install_handler(SIGHUP); install_handler(SIGCHLD); #ifdef SIGWINCH install_handler(SIGWINCH);