diff options
author | Peter Stephenson <p.stephenson@samsung.com> | 2019-05-13 09:55:01 +0100 |
---|---|---|
committer | Peter Stephenson <p.stephenson@samsung.com> | 2019-05-13 09:55:01 +0100 |
commit | 95211f87ed04fff74475109d36027b5a24a71ab9 (patch) | |
tree | c3b3ac4ba27c96214e6e30cb0bd1f2e0ef9a1163 /Src | |
parent | cebec8926a31db3ed2dccca7d2b317ac8baa6afc (diff) | |
download | zsh-95211f87ed04fff74475109d36027b5a24a71ab9.tar.gz zsh-95211f87ed04fff74475109d36027b5a24a71ab9.tar.xz zsh-95211f87ed04fff74475109d36027b5a24a71ab9.zip |
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.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/signals.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Src/signals.c b/Src/signals.c index f294049c2..14218177a 100644 --- a/Src/signals.c +++ b/Src/signals.c @@ -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; |