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:
parent
d4972af12c
commit
ca456fbba3
@ -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 "/"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user