summaryrefslogtreecommitdiff
path: root/sys/vm
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1998-12-19 08:23:31 +0000
committerJulian Elischer <julian@FreeBSD.org>1998-12-19 08:23:31 +0000
commit39fb8e6b3ed00825cf6333574268aec971330f86 (patch)
treef4a875d696335dc8d78622f348aff64266fa58aa /sys/vm
parenteb127873d51f2859b6d1612b9b3e3cadc66df598 (diff)
Notes
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_glue.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
index 33131499a007..ce4786f8e834 100644
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -59,7 +59,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_glue.c,v 1.77 1998/10/13 08:24:43 dg Exp $
+ * $Id: vm_glue.c,v 1.78 1998/12/19 02:55:34 julian Exp $
*/
#include "opt_rlimit.h"
@@ -229,20 +229,22 @@ vm_fork(p1, p2, flags)
up = p2->p_addr;
- /*
#ifndef COMPAT_LINUX_THREADS
+ /*
* 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).
+ */
+ p2->p_stats = &up->u_stats;
+ p2->p_sigacts = &up->u_sigacts;
+ up->u_sigacts = *p1->p_sigacts;
#else
+ /*
* p_stats currently points at fields in the user struct
* but not at &u, instead at p_addr. Copy parts of
-#endif /* COMPAT_LINUX_THREADS */
* p_stats; zero the rest of p_stats (statistics).
*/
p2->p_stats = &up->u_stats;
-#ifndef COMPAT_LINUX_THREADS
- p2->p_sigacts = &up->u_sigacts;
- up->u_sigacts = *p1->p_sigacts;
#endif /* COMPAT_LINUX_THREADS */
bzero(&up->u_stats.pstat_startzero,
(unsigned) ((caddr_t) &up->u_stats.pstat_endzero -