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.
This commit is contained in:
Tim J. Robbins 2002-12-14 01:08:04 +00:00
parent f3059f3906
commit 2e3684f843

View file

@ -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]);