summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_prot.c
diff options
context:
space:
mode:
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