From das@HAL9000.wox.org  Fri Jul 12 21:00:14 2002
Return-Path: <das@HAL9000.wox.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 01E7C37B400
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 12 Jul 2002 21:00:14 -0700 (PDT)
Received: from HAL9000.wox.org (12-233-156-170.client.attbi.com [12.233.156.170])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CE0DC43E6D
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 12 Jul 2002 21:00:09 -0700 (PDT)
	(envelope-from das@HAL9000.wox.org)
Received: from HAL9000.wox.org (localhost [127.0.0.1])
	by HAL9000.wox.org (8.12.3/8.12.3) with ESMTP id g6D40Of3000574
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 12 Jul 2002 21:00:24 -0700 (PDT)
	(envelope-from das@HAL9000.wox.org)
Received: (from das@localhost)
	by HAL9000.wox.org (8.12.3/8.12.3/Submit) id g6D40NMn000573;
	Fri, 12 Jul 2002 21:00:23 -0700 (PDT)
	(envelope-from das)
Message-Id: <200207130400.g6D40NMn000573@HAL9000.wox.org>
Date: Fri, 12 Jul 2002 21:00:23 -0700 (PDT)
From: David Schultz <dschultz@uclink.Berkeley.EDU>
To: FreeBSD-gnats-submit@freebsd.org
Subject: root gets ten extra processes, not one
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         40515
>Category:       kern
>Synopsis:       root gets ten extra processes, not one
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    silby
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 12 21:10:13 PDT 2002
>Closed-Date:    Tue Jul 30 12:05:41 PDT 2002
>Last-Modified:  Tue Jul 30 12:05:41 PDT 2002
>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:
Responsible-Changed-From-To: freebsd-bugs->silby 
Responsible-Changed-By: cjc 
Responsible-Changed-When: Sat Jul 13 14:17:12 PDT 2002 
Responsible-Changed-Why:  
silby made the changes that need to be documented. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40515 
State-Changed-From-To: open->patched 
State-Changed-By: silby 
State-Changed-When: Mon Jul 29 22:37:06 PDT 2002 
State-Changed-Why:  
-current fixed, -stable will be updated soon. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40515 
State-Changed-From-To: patched->closed 
State-Changed-By: silby 
State-Changed-When: Tue Jul 30 12:05:25 PDT 2002 
State-Changed-Why:  
MFC'd, done. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40515 
>Unformatted:
