diff options
-rw-r--r-- | bin/sh/jobs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c index d4e966c40223..129f3720d3f5 100644 --- a/bin/sh/jobs.c +++ b/bin/sh/jobs.c @@ -968,7 +968,8 @@ dowait(int block, struct job *job) sig = WTERMSIG(status); } if (sig != 0 && sig != SIGINT && sig != SIGPIPE) { - if (thisjob->foreground && !WIFSTOPPED(status)) { + if (!mflag || + (thisjob->foreground && !WIFSTOPPED(status))) { i = WTERMSIG(status); if ((i & 0x7F) < NSIG && sys_siglist[i & 0x7F]) out1str(sys_siglist[i & 0x7F]); |