svn commit: r209389 - head/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Mon Jun 21 09:51:25 UTC 2010
Author: kib
Date: Mon Jun 21 09:51:25 2010
New Revision: 209389
URL: http://svn.freebsd.org/changeset/base/209389
Log:
Do not report a stack garbage as the old value for debug.ncores sysctl.
Reported by: brucec
Modified:
head/sys/kern/kern_sig.c
Modified: head/sys/kern/kern_sig.c
==============================================================================
--- head/sys/kern/kern_sig.c Mon Jun 21 08:24:50 2010 (r209388)
+++ head/sys/kern/kern_sig.c Mon Jun 21 09:51:25 2010 (r209389)
@@ -2953,7 +2953,8 @@ sysctl_debug_num_cores_check (SYSCTL_HAN
{
int error;
int new_val;
-
+
+ new_val = num_cores;
error = sysctl_handle_int(oidp, &new_val, 0, req);
if (error != 0 || req->newptr == NULL)
return (error);
More information about the svn-src-head
mailing list