1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-12-16 09:01:25 +01:00

44259: Ensure we can set signals to default even if ignored.

Previously the shell didn't take account of signals marked as

ignored on entry, which was inconsistent with other behaviour.
This commit is contained in:
Peter Stephenson 2019-05-13 09:55:01 +01:00
parent cebec8926a
commit 95211f87ed
2 changed files with 5 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2019-05-13 Peter Stephenson <p.stephenson@samsung.com>
* 44259: Src/signals.c: Ensure we can set signal to default
even if it was ignored on entry to the shell.
2019-05-08 Oliver Kiddle <okiddle@yahoo.co.uk>
* 44279: Completion/BSD/Command/_cu, Completion/BSD/Command/_gstat,

View file

@ -1011,10 +1011,6 @@ removetrap(int sig)
(!trapped || locallevel > (sigtrapped[sig] >> ZSIG_SHIFT)))
dosavetrap(sig, locallevel);
if (!trapped) {
unqueue_signals();
return NULL;
}
if (sigtrapped[sig] & ZSIG_TRAPPED)
nsigtrapped--;
sigtrapped[sig] = 0;