diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-06-29 20:25:58 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-06-29 20:25:58 +0000 |
commit | fedf3c845cad7b49fefb26ab7ee064f1da678141 (patch) | |
tree | 12b30843861adcb61643cf18c95f2e9faea02781 /sys/kern/init_main.c | |
parent | 00b84214978fc15abb6bf83368b9958ea560a31f (diff) |
We always copy struct pcred when creating a new process, so the reference
count was always one. That's pointless, so remove the member and the code.
ok tedu@
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 9d7601dbcae..4d90750370d 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.167 2010/05/14 18:47:56 kettenis Exp $ */ +/* $OpenBSD: init_main.c,v 1.168 2010/06/29 20:25:57 guenther Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -290,7 +290,6 @@ main(void *framep) timeout_set(&p->p_realit_to, realitexpire, p); /* Create credentials. */ - cred0.p_refcnt = 1; p->p_cred = &cred0; p->p_ucred = crget(); p->p_ucred->cr_ngroups = 1; /* group 0 */ |