aboutsummaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 5ca1d910f937..b9088766dd8b 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -38,7 +38,7 @@
* SUCH DAMAGE.
*
* from: @(#)kern_fork.c 7.29 (Berkeley) 5/15/91
- * $Id: kern_fork.c,v 1.6.2.1 1994/05/04 07:54:38 rgrimes Exp $
+ * $Id: kern_fork.c,v 1.8 1994/05/04 08:26:54 rgrimes Exp $
*/
#include "param.h"
@@ -246,6 +246,11 @@ again:
#endif
/*
+ * set priority of child to be that of parent
+ */
+ p2->p_cpu = p1->p_cpu;
+
+ /*
* This begins the section where we must prevent the parent
* from being swapped.
*/
@@ -268,6 +273,9 @@ again:
p2->p_stats->p_start = time;
(void) spl0();
p2->p_acflag = AFORK;
+/*
+ vm_map_init_pmap(&p2->p_vmspace->vm_map);
+*/
return (0);
}