diff options
Diffstat (limited to 'Src/builtin.c')
-rw-r--r-- | Src/builtin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index a7c03acef..acefcd111 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -3153,7 +3153,8 @@ zexit(int val, int from_signal) HEAPALLOC { if (isset(MONITOR) && !stopmsg && !from_signal) { scanjobs(); /* check if jobs need printing */ - checkjobs(); /* check if any jobs are running/stopped */ + if (isset(CHECKJOBS)) + checkjobs(); /* check if any jobs are running/stopped */ if (stopmsg) { stopmsg = 2; LASTALLOC_RETURN; |