aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorLuoqi Chen <luoqi@FreeBSD.org>1999-12-06 04:53:08 +0000
committerLuoqi Chen <luoqi@FreeBSD.org>1999-12-06 04:53:08 +0000
commit91c28bfde09b7f5b468fb0d7de212ea59ee8ffb2 (patch)
tree76b479186ab6922542909fae5b1175a021c96b8f /sys/kern/kern_fork.c
parenta2e7fb9f68af2310db416ad7e27c02e2d27fd21f (diff)
downloadsrc-91c28bfde09b7f5b468fb0d7de212ea59ee8ffb2.tar.gz
src-91c28bfde09b7f5b468fb0d7de212ea59ee8ffb2.zip
User ldt sharing.
Notes
Notes: svn path=/head/; revision=54188
Diffstat (limited to 'sys/kern/kern_fork.c')
-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 9f3feb29f4bb..2468ad7f65f1 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.