1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-22 11:51:04 +02:00

44284: Mark SIGQUIT as ignore if ignored on entry to shell.

This prevents us from re-enabling it after a fork if it is being
ignored.
This commit is contained in:
Peter Stephenson 2019-04-25 20:29:54 +01:00
parent d4972af12c
commit ca456fbba3
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2019-04-25 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 44248: Src/init.c: Mark SIGQUIT as ignored if ignored at
shell start, so we don't enable it after a fork.
2019-04-25 Peter Stephenson <p.stephenson@samsung.com>
* 44254: Src/compat.c: make quite sure we've reached "/"

View File

@ -1234,6 +1234,15 @@ init_signals(void)
intr();
#ifdef POSIX_SIGNALS
{
struct sigaction act;
if (!sigaction(SIGQUIT, NULL, &act) &&
act.sa_handler == SIG_IGN)
sigtrapped[SIGQUIT] = ZSIG_IGNORED;
}
#endif
#ifndef QDEBUG
signal_ignore(SIGQUIT);
#endif