summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenno Rice <benno@FreeBSD.org>2002-03-21 02:47:51 +0000
committerBenno Rice <benno@FreeBSD.org>2002-03-21 02:47:51 +0000
commit565ab9395fd2e656c281153e8a9d6414f6202f61 (patch)
tree79d00ae6fdc1b97482355f7af76f1fe686261ef7
parenteca80f82ea5f15c87a2843ebf1c8f7877c76f76d (diff)
Notes
-rw-r--r--sys/kern/kern_fork.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index feef8efb9e4b..d508cbf238c8 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -481,9 +481,6 @@ again:
PROC_LOCK(p1);
p2->p_ucred = crhold(p1->p_ucred);
td2->td_ucred = crhold(p2->p_ucred); /* XXXKSE */
-#ifdef DIAGNOSTIC /* see the comment in ast() */
- td2->td_ucred_cache = NULL;
-#endif
if (p2->p_args)
p2->p_args->ar_ref++;
@@ -811,12 +808,9 @@ fork_exit(callout, arg, frame)
kthread_exit(0);
}
PROC_UNLOCK(p);
-#ifdef DIAGNOSTIC /* see the comment in ast() */
- if (td->td_ucred_cache)
- panic("fork_exit:thread already has cached ucred");
- td->td_ucred_cache = td->td_ucred;
- td->td_ucred = NULL;
-#endif /* DIAGNOSTIC */
+#ifdef DIAGNOSTIC
+ cred_free_thread(td);
+#endif
mtx_assert(&Giant, MA_NOTOWNED);
}