diff options
| author | Jeffrey Hsu <hsu@FreeBSD.org> | 1996-03-11 06:05:03 +0000 |
|---|---|---|
| committer | Jeffrey Hsu <hsu@FreeBSD.org> | 1996-03-11 06:05:03 +0000 |
| commit | b75356e1aca0566a89a97a654b5786dfb73645e5 (patch) | |
| tree | d9300f117186eb466b438b0f88a94badb260f3bf /sys/kern/tty.c | |
| parent | ec3f61ff365cab9571436f0ca1e45fe2d9e63e5f (diff) | |
Notes
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 7fe9e225dc08..188a132c4976 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; |
