diff options
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r-- | sys/kern/subr_prf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index 034a63c..5b2078b 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -157,7 +157,6 @@ tprintf(struct proc *p, int pri, const char *fmt, ...) if (pri != -1) flags |= TOLOG; if (p != NULL) { - PGRPSESS_XLOCK(); PROC_LOCK(p); if (p->p_flag & P_CONTROLT && p->p_session->s_ttyvp) { SESS_LOCK(p->p_session); @@ -172,7 +171,6 @@ tprintf(struct proc *p, int pri, const char *fmt, ...) tp = NULL; } else PROC_UNLOCK(p); - PGRPSESS_XUNLOCK(); } pca.pri = pri; pca.tty = tp; @@ -181,11 +179,11 @@ tprintf(struct proc *p, int pri, const char *fmt, ...) retval = kvprintf(fmt, putchar, &pca, 10, ap); va_end(ap); if (shld) { - PGRPSESS_XLOCK(); + PROC_LOCK(p); SESS_LOCK(p->p_session); SESSRELE(p->p_session); SESS_UNLOCK(p->p_session); - PGRPSESS_XUNLOCK(); + PROC_UNLOCK(p); } msgbuftrigger = 1; } |