From 2e3684f8433b2a9d7c665f2109f2f19f2d08cba6 Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Sat, 14 Dec 2002 01:08:04 +0000 Subject: [PATCH] When job control is disabled, never show the job id when reporting the status of a background process that has terminated because of a signal. --- bin/sh/jobs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]);