diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/builtin.c | 4 | ||||
-rw-r--r-- | Src/math.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index 6f9b1dd57..b8e76086a 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -3209,9 +3209,11 @@ zexit(int val, int from_signal) if (in_exit++ && from_signal) { LASTALLOC_RETURN; } - if (isset(MONITOR)) + if (isset(MONITOR)) { /* send SIGHUP to any jobs left running */ killrunjobs(from_signal); + errflag = 0; + } if (isset(RCS) && interact) { if (!nohistsave) savehistfile(NULL, 1, HFILE_USE_OPTIONS); diff --git a/Src/math.c b/Src/math.c index 1607d4472..e0e13ee35 100644 --- a/Src/math.c +++ b/Src/math.c @@ -876,6 +876,8 @@ mathevall(char *s, int prek, char **ep) ptr = s; sp = -1; unary = 1; + stack[0].val.type = MN_INTEGER; + stack[0].val.u.l = 0; mathparse(prek); *ep = ptr; DPUTS(!errflag && sp, |