summaryrefslogtreecommitdiffstats
path: root/sys/uvm/uvm_glue.c
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>2001-04-02 21:43:10 +0000
committerniklas <niklas@openbsd.org>2001-04-02 21:43:10 +0000
commit1e2a4b7de664136cad86537230bd68eb56844410 (patch)
treec0245488cf1e184eeab8583de6b0869cff989cb1 /sys/uvm/uvm_glue.c
parentATA_POLL should have been AT_POLL (diff)
downloadwireguard-openbsd-1e2a4b7de664136cad86537230bd68eb56844410.tar.xz
wireguard-openbsd-1e2a4b7de664136cad86537230bd68eb56844410.zip
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));