diff options
author | Tim J. Robbins <tjr@FreeBSD.org> | 2002-12-14 01:08:04 +0000 |
---|---|---|
committer | Tim J. Robbins <tjr@FreeBSD.org> | 2002-12-14 01:08:04 +0000 |
commit | 2e3684f8433b2a9d7c665f2109f2f19f2d08cba6 (patch) | |
tree | 103118086d80225d3692619bbdd9111e278557f5 /bin/sh/jobs.c | |
parent | f3059f3906cc11f7f486581c429e3b4806d9c215 (diff) | |
download | src-2e3684f8433b2a9d7c665f2109f2f19f2d08cba6.tar.gz src-2e3684f8433b2a9d7c665f2109f2f19f2d08cba6.zip |
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.
Notes
Notes:
svn path=/head/; revision=107846
Diffstat (limited to 'bin/sh/jobs.c')
-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]); |