From aa14f489f215c5ecae9ed42b707ce304021826c7 Mon Sep 17 00:00:00 2001 From: tjr Date: Sat, 17 Aug 2002 13:57:47 +0000 Subject: Show job control ID, command text, etc. when foreground processes are suspended. This is a followup to rev. 1.51. MFC after: 1 week --- bin/sh/jobs.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'bin/sh/jobs.c') diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c index db13855..2fd7aaa 100644 --- a/bin/sh/jobs.c +++ b/bin/sh/jobs.c @@ -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 -- cgit v1.1