summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_fork.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 49bd940..2ea502e 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_fork.c 8.6 (Berkeley) 4/8/94
- * $Id: kern_fork.c,v 1.2 1996/04/02 05:26:56 kashmir Exp $
+ * $Id: kern_fork.c,v 1.20 1996/04/17 17:04:55 smpatel Exp $
*/
#include "opt_ktrace.h"
@@ -220,6 +220,11 @@ again:
(unsigned) ((caddr_t)&p2->p_endcopy - (caddr_t)&p2->p_startcopy));
/*
+ * XXX: this should be done as part of the startzero above
+ */
+ p2->p_vmspace = 0; /* XXX */
+
+ /*
* Duplicate sub-structures as needed.
* Increase reference counts on shared objects.
* The p_stats and p_sigacts substructs are set in vm_fork.
OpenPOWER on IntegriCloud