mirror of
https://github.com/zsh-users/zsh
synced 2024-07-25 04:04:52 +00:00
18144: no SIGHUP handler if parent was ignoring.
This commit is contained in:
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);
|
||||
|
|
Loading…
Reference in a new issue