diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2004-07-26 13:18:07 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2004-07-26 13:18:07 +0000 |
commit | 17e576782c4fd64194d4908af5b9774308f1205f (patch) | |
tree | 17dd493a05fe17e0e2f90d9dbf30551dd7d97e35 /Src/signals.c | |
parent | 725616d600e4e574aa1cdd3ac0abe874a512fe14 (diff) | |
download | zsh-17e576782c4fd64194d4908af5b9774308f1205f.tar.gz zsh-17e576782c4fd64194d4908af5b9774308f1205f.tar.xz zsh-17e576782c4fd64194d4908af5b9774308f1205f.zip |
20198: fix TRAPEXIT.
Diffstat (limited to 'Src/signals.c')
-rw-r--r-- | Src/signals.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Src/signals.c b/Src/signals.c index 1c134aaa6..064feb480 100644 --- a/Src/signals.c +++ b/Src/signals.c @@ -939,6 +939,10 @@ endtrapscope(void) * with non-standard sigtrapped & sigfuncs values */ +/* Are we already executing a trap? */ +/**/ +int intrap; + /**/ void dotrapargs(int sig, int *sigtr, void *sigfn) @@ -949,9 +953,6 @@ dotrapargs(int sig, int *sigtr, void *sigfn) int obreaks = breaks; int isfunc; - /* Are we already executing a trap? */ - static int intrap; - /* if signal is being ignored or the trap function * * is NULL, then return * * * |