make sure that the pseudo_set isn't empty.
[unix-history] / sys / kern / kern_fork.c
index 7a03a72..b8f0e6e 100644 (file)
@@ -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.
 /*
  * 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
  * 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"
  */
 
 #include "param.h"
@@ -238,6 +245,11 @@ again:
        p2->p_vmspace->p_ckey = p1->p_vmspace->p_ckey; /* XXX move this */
 #endif
 
        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.
        /*
         * 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;
                p2->p_stats->p_start = time;
                (void) spl0();
                p2->p_acflag = AFORK;
+/*
+               vm_map_init_pmap(&p2->p_vmspace->vm_map);
+*/
                return (0);
        }
 
                return (0);
        }