1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 05:24:23 +01:00

18144: no SIGHUP handler if parent was ignoring.

This commit is contained in:
Bart Schaefer 2003-01-27 16:38:09 +00:00
parent 778a73b027
commit 8f67d52d72

@ -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);