From 22c75bf1c95925ca749760aa92580541ac2e6196 Mon Sep 17 00:00:00 2001 From: tanimura Date: Mon, 11 Mar 2002 07:53:13 +0000 Subject: Stop abusing the pgrpsess_lock. --- sys/kern/kern_prot.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/kern/kern_prot.c') diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index cfcef0a..90f5196 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -1862,14 +1862,12 @@ setlogin(td, uap) if (error == ENAMETOOLONG) error = EINVAL; else if (!error) { - PGRPSESS_XLOCK(); PROC_LOCK(p); SESS_LOCK(p->p_session); (void) memcpy(p->p_session->s_login, logintmp, sizeof(logintmp)); SESS_UNLOCK(p->p_session); PROC_UNLOCK(p); - PGRPSESS_XUNLOCK(); } done2: mtx_unlock(&Giant); -- cgit v1.1