Module Name: src
Committed By: yamt
Date: Mon May 4 14:52:33 UTC 2009
Modified Files:
src/sys/kern: init_sysctl.c
Log Message:
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.160 -r1.161 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.160 src/sys/kern/init_sysctl.c:1.161
--- src/sys/kern/init_sysctl.c:1.160 Sun Mar 29 01:02:50 2009
+++ src/sys/kern/init_sysctl.c Mon May 4 14:52:33 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: init_sysctl.c,v 1.160 2009/03/29 01:02:50 mrg Exp $ */
+/* $NetBSD: init_sysctl.c,v 1.161 2009/05/04 14:52:33 yamt 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.160 2009/03/29 01:02:50 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.161 2009/05/04 14:52:33 yamt Exp $");
#include "opt_sysv.h"
#include "opt_compat_netbsd32.h"
@@ -2230,6 +2230,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;