summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_glue.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2001-04-02 21:43:13 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2001-04-02 21:43:13 +0000
commitaf30415b0b2928465e43e6cf1262e7275d8dd1c5 (patch)
treec0943d31f2c4f5f6770363b2596da79e506bfc31 /sys/uvm/uvm_glue.c
parent92d3551f6f3379d9e9e7a6e3652ca50686373a1d (diff)
On popular demand, the Linux-compatibility clone(2) implementation based
on NetBSD's code, as well as some faked Posix RT extensions by me. This makes at least simple linuxthreads tests work.
Diffstat (limited to 'sys/uvm/uvm_glue.c')
-rw-r--r--sys/uvm/uvm_glue.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/uvm/uvm_glue.c b/sys/uvm/uvm_glue.c
index 26a5276798c..03ff8844e8b 100644
--- a/sys/uvm/uvm_glue.c
+++ b/sys/uvm/uvm_glue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_glue.c,v 1.9 2001/01/29 02:07:44 niklas Exp $ */
+/* $OpenBSD: uvm_glue.c,v 1.10 2001/04/02 21:43:12 niklas Exp $ */
/* $NetBSD: uvm_glue.c,v 1.23 1999/05/28 20:49:51 thorpej Exp $ */
/*
@@ -295,13 +295,10 @@ uvm_fork(p1, p2, shared, stack, stacksize)
panic("uvm_fork: uvm_fault_wire failed: %d", rv);
/*
- * p_stats and p_sigacts currently point at fields in the user
- * struct but not at &u, instead at p_addr. Copy p_sigacts and
- * parts of p_stats; zero the rest of p_stats (statistics).
+ * p_stats currently point at fields in the user struct. Copy
+ * parts of p_stats, and zero out the rest.
*/
p2->p_stats = &up->u_stats;
- p2->p_sigacts = &up->u_sigacts;
- up->u_sigacts = *p1->p_sigacts;
memset(&up->u_stats.pstat_startzero, 0,
(unsigned) ((caddr_t)&up->u_stats.pstat_endzero -
(caddr_t)&up->u_stats.pstat_startzero));