diff options
author | hsu <hsu@FreeBSD.org> | 1996-03-11 06:05:03 +0000 |
---|---|---|
committer | hsu <hsu@FreeBSD.org> | 1996-03-11 06:05:03 +0000 |
commit | 3efcd29606dba0d527ba294cf9b5be8e83b3df89 (patch) | |
tree | d9300f117186eb466b438b0f88a94badb260f3bf /sys/kern/tty.c | |
parent | 633fd1e2eb1963ab5a8b7c666ecd06d0e5ab280a (diff) | |
download | FreeBSD-src-3efcd29606dba0d527ba294cf9b5be8e83b3df89.zip FreeBSD-src-3efcd29606dba0d527ba294cf9b5be8e83b3df89.tar.gz |
From Lite2: proc LIST changes.
Reviewed by: david & bde
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 7fe9e22..188a132 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)tty.c 8.8 (Berkeley) 1/21/94 - * $Id: tty.c,v 1.78 1995/12/16 21:45:02 bde Exp $ + * $Id: tty.c,v 1.79 1996/03/02 18:24:06 peter Exp $ */ /*- @@ -2177,11 +2177,11 @@ ttyinfo(tp) ttyprintf(tp, "not a controlling terminal\n"); else if (tp->t_pgrp == NULL) ttyprintf(tp, "no foreground process group\n"); - else if ((p = tp->t_pgrp->pg_mem) == NULL) + else if ((p = tp->t_pgrp->pg_members.lh_first) == 0) ttyprintf(tp, "empty foreground process group\n"); else { /* Pick interesting process. */ - for (pick = NULL; p != NULL; p = p->p_pgrpnxt) + for (pick = NULL; p != 0; p = p->p_pglist.le_next) if (proc_compare(pick, p)) pick = p; |