Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jul 2002 21:00:23 -0700 (PDT)
From:      David Schultz <dschultz@uclink.Berkeley.EDU>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/40515: root gets ten extra processes, not one
Message-ID:  <200207130400.g6D40NMn000573@HAL9000.wox.org>

next in thread | raw e-mail | index | archive | help

>Number:         40515
>Category:       kern
>Synopsis:       root gets ten extra processes, not one
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 12 21:10:13 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     David Schultz
>Release:        MS DOS 3.2
>Organization:
>Environment:
>Description:
Revision 1.132 of kern_fork.c changed the number of processes reserved
for root from 1 to 10.  The following patch updates the documentation
to reflect that.  (Arguably the reservation could be made tunable, but
that's a PR for another day.)
>How-To-Repeat:
>Fix:
Index: lib/libc/sys/fork.2
===================================================================
RCS file: /home/ncvs/src/lib/libc/sys/fork.2,v
retrieving revision 1.14
diff -u -r1.14 fork.2
--- lib/libc/sys/fork.2	2002/01/09 14:44:06	1.14
+++ lib/libc/sys/fork.2	2002/07/13 03:49:58
@@ -99,7 +99,7 @@
 .Xr sysctl 3
 MIB variable
 .Dv KERN_MAXPROC .
-(The limit is actually one less than this
+(The limit is actually ten less than this
 except for the super user).
 .It Bq Er EAGAIN
 The user is not the super user, and
Index: lib/libc/sys/rfork.2
===================================================================
RCS file: /home/ncvs/src/lib/libc/sys/rfork.2,v
retrieving revision 1.23
diff -u -r1.23 rfork.2
--- lib/libc/sys/rfork.2	2001/12/19 00:59:54	1.23
+++ lib/libc/sys/rfork.2	2002/07/13 03:49:58
@@ -121,7 +121,7 @@
 .Xr sysctl 3
 MIB variable
 .Dv KERN_MAXPROC .
-(The limit is actually one less than this
+(The limit is actually ten less than this
 except for the super user).
 .It Bq Er EAGAIN
 The user is not the super user, and
Index: sys/kern/kern_fork.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/kern_fork.c,v
retrieving revision 1.152
diff -u -r1.152 kern_fork.c
--- sys/kern/kern_fork.c	2002/07/11 02:18:33	1.152
+++ sys/kern/kern_fork.c	2002/07/13 03:49:58
@@ -308,7 +308,7 @@
 	/*
 	 * Although process entries are dynamically created, we still keep
 	 * a global limit on the maximum number we will create.  Don't allow
-	 * a nonprivileged user to use the last process; don't let root
+	 * a nonprivileged user to use the last ten processes; don't let root
 	 * exceed the limit. The variable nprocs is the current number of
 	 * processes, maxproc is the limit.
 	 */
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207130400.g6D40NMn000573>