summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorluoqi <luoqi@FreeBSD.org>1999-12-06 04:53:08 +0000
committerluoqi <luoqi@FreeBSD.org>1999-12-06 04:53:08 +0000
commit5c9244cd12f812687a0e1da3fa8fd69c320bdb42 (patch)
tree3d2bdc635a51af92e9000f2fe294d685906d5387 /sys/kern
parent5851b69ff706eaa8e3a487bdfbbf3fe0177ed46a (diff)
downloadFreeBSD-src-5c9244cd12f812687a0e1da3fa8fd69c320bdb42.zip
FreeBSD-src-5c9244cd12f812687a0e1da3fa8fd69c320bdb42.tar.gz
User ldt sharing.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_fork.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 9f3feb2..2468ad7 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -167,16 +167,7 @@ fork1(p1, flags, procp)
*/
if ((flags & RFPROC) == 0) {
- /*
- * Divorce the memory, if it is shared, essentially
- * this changes shared memory amongst threads, into
- * COW locally.
- */
- if ((flags & RFMEM) == 0) {
- if (p1->p_vmspace->vm_refcnt > 1) {
- vmspace_unshare(p1);
- }
- }
+ vm_fork(p1, 0, flags);
/*
* Close all file descriptors.
OpenPOWER on IntegriCloud