Subject: Re: routed eating all the cpu time
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: current-users
Date: 06/11/2000 20:08:37
In article <14659.59952.264069.564587@pcwork3.radiologie.rad.klinikum.rwth-aachen.de>,
Markus Kilbinger <kilbi@rad.rwth-aachen.de> wrote:
> Please, could somebody figure out the following problem?
> 
> I have no experience with that :-( ...

Try the following patch and rebuild your kernel; please let me know if
that fixes the problem for you so that I can commit the fix.

christos

Index: kern_sysctl.c
===================================================================
RCS file: /cvsroot/syssrc/sys/kern/kern_sysctl.c,v
retrieving revision 1.61
diff -u -u -r1.61 kern_sysctl.c
--- kern_sysctl.c	2000/04/15 04:38:07	1.61
+++ kern_sysctl.c	2000/06/11 20:07:52
@@ -107,6 +107,10 @@
 	size_t *oldlenp;
 
 	/*
+	 * Make sure we don't return garbage on success
+	 */
+	*retval = 0;
+	/*
 	 * all top-level sysctl names are non-terminal
 	 */
 	if (SCARG(uap, namelen) > CTL_MAXNAME || SCARG(uap, namelen) < 2)