summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-05-01 21:16:38 +0000
committerjhb <jhb@FreeBSD.org>2003-05-01 21:16:38 +0000
commit9e17fca4258b0a8f169ab5253e584a3c6d1d4b55 (patch)
treec08a5c3341f9680721f7ab6d61465d3cd7e78163 /sys/kern/kern_exit.c
parent8716bb50e311ba9636291e5d83d84d05f13fd13b (diff)
downloadFreeBSD-src-9e17fca4258b0a8f169ab5253e584a3c6d1d4b55.zip
FreeBSD-src-9e17fca4258b0a8f169ab5253e584a3c6d1d4b55.tar.gz
Initialize and destroy the struct proc mutex in the proc zone's init and
fini routines instead of in fork() and wait(). This has the nice side benefit that the proc lock of any process on the allproc list is always valid and sched_lock doesn't have to be used to test against PRS_NEW anymore.
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 8e16d3e..b77c1d9 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -685,7 +685,6 @@ loop:
* release while still running in process context.
*/
vm_waitproc(p);
- mtx_destroy(&p->p_mtx);
#ifdef MAC
mac_destroy_proc(p);
#endif
OpenPOWER on IntegriCloud