summaryrefslogtreecommitdiff
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2003-02-20 04:18:42 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2003-02-20 04:18:42 +0000
commit27e39ae4d8e31aab0f59f92db075b1b340648758 (patch)
tree28ed51036df7221547d852601de750f3a017c7e6 /sys/kern/kern_fork.c
parentfe6d8dd8ee642af9e2e2038ec5a71e89bfb7aa60 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 5c36a246ea7f..19f506c1b5d3 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -558,17 +558,10 @@ again:
PROC_UNLOCK(p2);
/*
- * If p_limit is still copy-on-write, bump refcnt,
- * otherwise get a copy that won't be modified.
- * (If PL_SHAREMOD is clear, the structure is shared
- * copy-on-write.)
+ * p_limit is copy-on-write, bump refcnt,
*/
- if (p1->p_limit->p_lflags & PL_SHAREMOD)
- p2->p_limit = limcopy(p1->p_limit);
- else {
- p2->p_limit = p1->p_limit;
- p2->p_limit->p_refcnt++;
- }
+ p2->p_limit = p1->p_limit;
+ p2->p_limit->p_refcnt++;
/*
* Setup linkage for kernel based threading