From 0423e8e00304d4fe38479e68d84649362c449fb6 Mon Sep 17 00:00:00 2001 From: tjr Date: Sat, 14 Dec 2002 01:08:04 +0000 Subject: 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(-) (limited to 'bin/sh/jobs.c') diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c index d4e966c..129f372 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]); -- cgit v1.1