From cd4a3dcb9db51eb7e7ebd0b4ee5f4a5637898b49 Mon Sep 17 00:00:00 2001 From: Bill Joy Date: Mon, 6 Apr 1981 05:14:51 -0800 Subject: [PATCH] really fixed SCCS-vsn: bin/csh/proc.c 4.4 --- usr/src/bin/csh/proc.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/usr/src/bin/csh/proc.c b/usr/src/bin/csh/proc.c index ce717c0de6..e702b5b29f 100644 --- a/usr/src/bin/csh/proc.c +++ b/usr/src/bin/csh/proc.c @@ -1,4 +1,4 @@ -static char *sccsid = "@(#)proc.c 4.3 %G%"; +static char *sccsid = "@(#)sh.proc.c 4.4 3/31/81"; #include "sh.h" #include "sh.dir.h" @@ -224,14 +224,16 @@ pjwait(pp) sigrelse(SIGCHLD); if (tpgrp > 0) ioctl(FSHTTY, TIOCSPGRP, &tpgrp); /* get tty back */ + if ((jobflags&(PSIGNALED|PSTOPPED|PTIME)) || + !eq(dcwd->di_name, fp->p_cwd->di_name)) { + if (jobflags&PSTOPPED) + printf("\n"); + pprint(pp, AREASON|SHELLDIR); + } if ((jobflags&(PINTERRUPTED|PSTOPPED)) && setintr && (!gointr || !eq(gointr, "-"))) { if ((jobflags & PSTOPPED) == 0) pflush(pp); - else { - printf("\n"); - pprint(pp, AREASON|SHELLDIR); - } pintr1(0); /*NOTREACHED*/ } -- 2.20.1