summaryrefslogtreecommitdiff
path: root/sys/kern/kern_prot.c
diff options
context:
space:
mode:
authorSeigo Tanimura <tanimura@FreeBSD.org>2002-03-11 07:53:13 +0000
committerSeigo Tanimura <tanimura@FreeBSD.org>2002-03-11 07:53:13 +0000
commit183ccde6c6987c08bd3ff23393185b41181a1260 (patch)
tree67cbceb5f52dfde68f8a75843701d4ce255820e6 /sys/kern/kern_prot.c
parentaa3bf85c54ebf04619bb3a2372e7ba22e1884b4b (diff)
Notes
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 cfcef0a36a8d..90f51964567e 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);