mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-15 20:51:27 +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:
parent
cebec8926a
commit
95211f87ed
2 changed files with 5 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue