mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +01:00
11895: trap exit problem when exiting from function scope
This commit is contained in:
parent
a908cdd155
commit
ae8c986107
@ -1,3 +1,8 @@
|
||||
2000-06-14 Peter Stephenson <pws@cambridgesiliconradio.com>
|
||||
|
||||
* 11895: Src/signals.c: exit traps weren't cleared from the
|
||||
list properly, resulting in memory management problems.
|
||||
|
||||
2000-06-14 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* 11885: Src/parse.c: nix kaboom with `time time'
|
||||
|
@ -837,9 +837,9 @@ endtrapscope(void)
|
||||
exitfn = removehashnode(shfunctab, "TRAPEXIT");
|
||||
} else {
|
||||
exitfn = sigfuncs[SIGEXIT];
|
||||
sigfuncs[SIGEXIT] = NULL;
|
||||
}
|
||||
unsettrap(SIGEXIT);
|
||||
sigfuncs[SIGEXIT] = NULL;
|
||||
sigtrapped[SIGEXIT] = 0;
|
||||
}
|
||||
|
||||
if (savetraps) {
|
||||
|
Loading…
Reference in New Issue
Block a user