diff options
| -rw-r--r-- | sys/kern/tty.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index bd89a41aef72..90b7c7a7accf 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -2615,7 +2615,9 @@ ttyinfo(struct tty *tp) PROC_SUNLOCK(pick); PROC_LOCK(pick); PGRP_UNLOCK(tp->t_pgrp); + PROC_SLOCK(pick); calcru(pick, &utime, &stime); + PROC_SUNLOCK(pick); pid = pick->p_pid; bcopy(pick->p_comm, comm, sizeof(comm)); PROC_UNLOCK(pick); |
