From 0d3528817d6f3d86d10dcf0e53b39af0945ca588 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 10 Nov 1999 08:23:19 +0000 Subject: zsh-workers/8607 --- Src/builtin.c | 4 +++- Src/math.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) 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, -- cgit 1.4.1