+/*
+ * Copyright (c) UNIX System Laboratories, Inc. All or some portions
+ * of this file are derived from material licensed to the
+ * University of California by American Telephone and Telegraph Co.
+ * or UNIX System Laboratories, Inc. and are reproduced herein with
+ * the permission of UNIX System Laboratories, Inc.
+ */
/*
* Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
* All rights reserved.
* SUCH DAMAGE.
*
* from: @(#)kern_fork.c 7.29 (Berkeley) 5/15/91
- * $Id: kern_fork.c,v 1.5 1993/12/09 09:16:41 davidg Exp $
+ * $Id: kern_fork.c,v 1.7 1994/03/14 21:54:15 davidg Exp $
*/
#include "param.h"
p2->p_vmspace->p_ckey = p1->p_vmspace->p_ckey; /* XXX move this */
#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.
p2->p_stats->p_start = time;
(void) spl0();
p2->p_acflag = AFORK;
+/*
+ vm_map_init_pmap(&p2->p_vmspace->vm_map);
+*/
return (0);
}