summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2005-02-24 04:44:25 +0000
committertedu <tedu@openbsd.org>2005-02-24 04:44:25 +0000
commit4e7b34f0cedc13a6bfa503cb593c7e6886c38c97 (patch)
tree8fa6d8c0fe884aff5c4e5d3be5dbd16221aa56f3 /sys/kern/kern_fork.c
parentDocument the 'source-track' stateful tracking option. Heavy influence (diff)
downloadwireguard-openbsd-4e7b34f0cedc13a6bfa503cb593c7e6886c38c97.tar.xz
wireguard-openbsd-4e7b34f0cedc13a6bfa503cb593c7e6886c38c97.zip
fix pr4036, don't set p2->p_cpu to null
ok deraadt miod markus
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index eee21a8231c..ed404db4a0c 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_fork.c,v 1.73 2004/11/23 19:08:55 miod Exp $ */
+/* $OpenBSD: kern_fork.c,v 1.74 2005/02/24 04:44:25 tedu Exp $ */
/* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */
/*
@@ -207,7 +207,7 @@ fork1(struct proc *p1, int exitsig, int flags, void *stack, size_t stacksize,
timeout_set(&p2->p_realit_to, realitexpire, p2);
#if defined(__HAVE_CPUINFO)
- p2->p_cpu = NULL;
+ p2->p_cpu = p1->p_cpu;
#endif
/*