summaryrefslogtreecommitdiff
path: root/walk.c
diff options
context:
space:
mode:
authorToby Goodwin <tjg@star.le.ac.uk>1999-01-11 10:55:18 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:22:09 +0100
commite11c7df86144bed383ac6bbeaecc3017d18b37db (patch)
tree6fad44921723eab2f2eb1c76b7214b4e79b818f3 /walk.c
parent671e1e2d1599aa8c5f1010b3fe75c151c56a7403 (diff)
beta: rc-1.5b4
Diffstat (limited to 'walk.c')
-rw-r--r--walk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/walk.c b/walk.c
index ed9f965..2f725d6 100644
--- a/walk.c
+++ b/walk.c
@@ -108,7 +108,7 @@ top: sigchk();
cond = oldcond;
break;
}
- if (setjmp(j.j))
+ if (sigsetjmp(j.j, 1))
break;
jbreak.jb = &j;
except(eBreak, jbreak, &e1);
@@ -131,7 +131,7 @@ top: sigchk();
Jbwrap j;
Estack e1, e2;
Edata jbreak;
- if (setjmp(j.j))
+ if (sigsetjmp(j.j, 1))
break;
jbreak.jb = &j;
except(eBreak, jbreak, &e1);
@@ -148,6 +148,7 @@ top: sigchk();
}
case nSubshell:
if (dofork(TRUE)) {
+ setsigdefaults(FALSE);
walk(n->u[0].p, FALSE);
rc_exit(getstatus());
}