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:
Tim J. Robbins 2002-08-17 13:57:47 +00:00
parent caab99ee38
commit 6c56d93528
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102007

View file

@ -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