diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2005-02-24 04:44:26 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2005-02-24 04:44:26 +0000 |
commit | a9467fe33110b5632193a8cb3376d8b891d62909 (patch) | |
tree | a0fc8c5c62c892b10d69e146d9384708f0ad53de /sys | |
parent | 049e5e1f6e3623c969b3f34d8a9a08ddcd139bc8 (diff) |
fix pr4036, don't set p2->p_cpu to null
ok deraadt miod markus
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_fork.c | 4 |
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 /* |