summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/ksh/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/exec.c b/bin/ksh/exec.c
index 4d3500c3260..1eb65c02989 100644
--- a/bin/ksh/exec.c
+++ b/bin/ksh/exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec.c,v 1.47 2007/08/02 10:52:10 fgsch Exp $ */
+/* $OpenBSD: exec.c,v 1.48 2007/09/05 19:02:01 otto Exp $ */
/*
* execute command tree
@@ -363,9 +363,9 @@ execute(struct op *volatile t,
if ((flags&XEXEC))
unwind(LEXIT); /* exit child */
if (rv != 0 && !(flags & XERROK)) {
+ trapsig(SIGERR_);
if (Flag(FERREXIT))
unwind(LERROR);
- trapsig(SIGERR_);
}
return rv;
}