mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue