summaryrefslogtreecommitdiff
path: root/Src/jobs.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2017-09-13 10:49:06 +0100
committerPeter Stephenson <pws@zsh.org>2017-09-13 10:49:06 +0100
commitda4146bdffb54423ad4d6db893b8ed25663169dc (patch)
tree3f7ce94c14f08d33abf4ee342ccd8293ac78ae9c /Src/jobs.c
parent91484e0d420e9ffcd9a0b0d6b893c213d16ffebd (diff)
downloadzsh-da4146bdffb54423ad4d6db893b8ed25663169dc.tar.gz
zsh-da4146bdffb54423ad4d6db893b8ed25663169dc.zip
41688: builtin wait for all jobs should ignore STAT_NOPRINT
Diffstat (limited to 'Src/jobs.c')
-rw-r--r--Src/jobs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/jobs.c b/Src/jobs.c
index 66dfb5a7e..226e7cff3 100644
--- a/Src/jobs.c
+++ b/Src/jobs.c
@@ -2217,7 +2217,8 @@ bin_fg(char *name, char **argv, Options ops, int func)
return 0;
} else { /* Must be BIN_WAIT, so wait for all jobs */
for (job = 0; job <= maxjob; job++)
- if (job != thisjob && jobtab[job].stat)
+ if (job != thisjob && jobtab[job].stat &&
+ !(jobtab[job].stat & STAT_NOPRINT))
retval = zwaitjob(job, 1);
unqueue_signals();
return retval;