Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Use KERN_PROCSLOP for struct kinfo_proc and KERN_LW...



details:   https://anonhg.NetBSD.org/src/rev/05da41fe0065
branches:  trunk
changeset: 558656:05da41fe0065
user:      atatat <atatat%NetBSD.org@localhost>
date:      Sat Feb 21 03:27:57 2004 +0000

description:
Use KERN_PROCSLOP for struct kinfo_proc and KERN_LWPSLOP for
struct kinfo_lwp, and not vice versa.

Should solve the issue with top dying because it's unable to "allocate
memory".

diffstat:

 sys/kern/init_sysctl.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r f9616a6e6a63 -r 05da41fe0065 sys/kern/init_sysctl.c
--- a/sys/kern/init_sysctl.c    Sat Feb 21 01:51:43 2004 +0000
+++ b/sys/kern/init_sysctl.c    Sat Feb 21 03:27:57 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init_sysctl.c,v 1.21 2004/02/19 03:57:56 atatat Exp $ */
+/*     $NetBSD: init_sysctl.c,v 1.22 2004/02/21 03:27:57 atatat Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.21 2004/02/19 03:57:56 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.22 2004/02/21 03:27:57 atatat Exp $");
 
 #include "opt_sysv.h"
 #include "opt_multiprocessor.h"
@@ -1505,7 +1505,7 @@
                if (needed > *oldlenp)
                        return (ENOMEM);
        } else {
-               needed += KERN_PROCSLOP;
+               needed += KERN_LWPSLOP;
                *oldlenp = needed;
        }
        return (0);
@@ -1799,7 +1799,7 @@
                if (needed > *oldlenp)
                        return (ENOMEM);
        } else {
-               needed += KERN_LWPSLOP;
+               needed += KERN_PROCSLOP;
                *oldlenp = needed;
        }
        return (0);



Home | Main Index | Thread Index | Old Index