From a9467fe33110b5632193a8cb3376d8b891d62909 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Thu, 24 Feb 2005 04:44:26 +0000 Subject: fix pr4036, don't set p2->p_cpu to null ok deraadt miod markus --- sys/kern/kern_fork.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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 /* -- cgit v1.2.3