Module Name: src Committed By: snj Date: Wed Jul 1 22:27:24 UTC 2009
Modified Files: src/sys/kern [netbsd-5]: init_sysctl.c Log Message: Pull up following revision(s) (requested by rmind in ticket #835): sys/kern/init_sysctl.c: revision 1.161 sysctl_doeproc: fix a bug in rev.1.135. don't forget to mark our marker process PK_MARKER. this fixes crashes in sched_pstats, etc. To generate a diff of this commit: cvs rdiff -u -r1.149.4.4 -r1.149.4.5 src/sys/kern/init_sysctl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/init_sysctl.c diff -u src/sys/kern/init_sysctl.c:1.149.4.4 src/sys/kern/init_sysctl.c:1.149.4.5 --- src/sys/kern/init_sysctl.c:1.149.4.4 Wed Apr 1 00:25:22 2009 +++ src/sys/kern/init_sysctl.c Wed Jul 1 22:27:23 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: init_sysctl.c,v 1.149.4.4 2009/04/01 00:25:22 snj Exp $ */ +/* $NetBSD: init_sysctl.c,v 1.149.4.5 2009/07/01 22:27:23 snj Exp $ */ /*- * Copyright (c) 2003, 2007, 2008 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.149.4.4 2009/04/01 00:25:22 snj Exp $"); +__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.149.4.5 2009/07/01 22:27:23 snj Exp $"); #include "opt_sysv.h" #include "opt_compat_netbsd32.h" @@ -2200,6 +2200,7 @@ kproc2 = kmem_alloc(sizeof(*kproc2), KM_SLEEP); } marker = kmem_alloc(sizeof(*marker), KM_SLEEP); + marker->p_flag = PK_MARKER; mutex_enter(proc_lock); mmmbrains = false;