X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/3ea52422f66b38ef51e27dd55269e58b4e82f791..3c83a5bcf148390bb116f44ccadccc6968bb181b:/sys/kern/kern_fork.c diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 7a03a72b46..b8f0e6e924 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1,3 +1,10 @@ +/* + * 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. @@ -31,7 +38,7 @@ * 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" @@ -238,6 +245,11 @@ again: 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. @@ -261,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); }