mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +00:00
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:
parent
f3059f3906
commit
2e3684f843
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107846
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user