summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_prot.c
diff options
context:
space:
mode:
authortanimura <tanimura@FreeBSD.org>2002-03-11 07:53:13 +0000
committertanimura <tanimura@FreeBSD.org>2002-03-11 07:53:13 +0000
commit22c75bf1c95925ca749760aa92580541ac2e6196 (patch)
tree67cbceb5f52dfde68f8a75843701d4ce255820e6 /sys/kern/kern_prot.c
parentb9e49bfcc91fc2e10b17f9bec70d4d4cfb27ad51 (diff)
downloadFreeBSD-src-22c75bf1c95925ca749760aa92580541ac2e6196.zip
FreeBSD-src-22c75bf1c95925ca749760aa92580541ac2e6196.tar.gz
Stop abusing the pgrpsess_lock.
Diffstat (limited to 'sys/kern/kern_prot.c')
-rw-r--r--sys/kern/kern_prot.c2
1 files changed, 0 insertions, 2 deletions
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);
OpenPOWER on IntegriCloud