summaryrefslogtreecommitdiff
path: root/Src/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Src/exec.c b/Src/exec.c
index f5feba50b..515a41f9b 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -3669,8 +3669,7 @@ doshfunc(char *name, Eprog prog, LinkList doshargs, int flags, int noreturnval)
memcpy(oldpipestats, pipestats, bytes);
}
- if (!intrap)
- starttrapscope();
+ starttrapscope();
tab = pparams;
if (!(flags & PM_UNDEFINED))
@@ -3770,8 +3769,7 @@ doshfunc(char *name, Eprog prog, LinkList doshargs, int flags, int noreturnval)
opts[LOCALOPTIONS] = saveopts[LOCALOPTIONS];
}
- if (!intrap)
- endtrapscope();
+ endtrapscope();
if (trapreturn < -1)
trapreturn++;