mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 14:23:55 +00:00
Show job control ID, command text, etc. when foreground processes are
suspended. This is a followup to rev. 1.51. MFC after: 1 week
This commit is contained in:
parent
caab99ee38
commit
6c56d93528
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102007
|
@ -966,13 +966,8 @@ dowait(int block, struct job *job)
|
|||
sig = WTERMSIG(status);
|
||||
}
|
||||
if (sig != 0 && sig != SIGINT && sig != SIGPIPE) {
|
||||
if (jp->foreground) {
|
||||
#if JOBS
|
||||
if (WIFSTOPPED(status))
|
||||
i = WSTOPSIG(status);
|
||||
else
|
||||
#endif
|
||||
i = WTERMSIG(status);
|
||||
if (thisjob->foreground && !WIFSTOPPED(status)) {
|
||||
i = WTERMSIG(status);
|
||||
if ((i & 0x7F) < NSIG && sys_siglist[i & 0x7F])
|
||||
out1str(sys_siglist[i & 0x7F]);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue