about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2003-01-27 16:38:09 +0000
committerBart Schaefer <barts@users.sourceforge.net>2003-01-27 16:38:09 +0000
commit8f67d52d72b219a04632eccff758579430d5161a (patch)
treed1c413faae38667f12f6af540a00b5a1203f8830
parent778a73b027509c9c9f70c8dbd184097efeacae43 (diff)
downloadzsh-8f67d52d72b219a04632eccff758579430d5161a.tar.gz
zsh-8f67d52d72b219a04632eccff758579430d5161a.tar.xz
zsh-8f67d52d72b219a04632eccff758579430d5161a.zip
18144: no SIGHUP handler if parent was ignoring.
-rw-r--r--Src/init.c5
1 files changed, 4 insertions, 1 deletions
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);