From owner-freebsd-bugs Fri Jul 12 21:10:21 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7419037B401 for ; Fri, 12 Jul 2002 21:10:14 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C337C43E6D for ; Fri, 12 Jul 2002 21:10:13 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6D4ADJU072585 for ; Fri, 12 Jul 2002 21:10:13 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6D4ADmD072584; Fri, 12 Jul 2002 21:10:13 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 01E7C37B400 for ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/40515: root gets ten extra processes, not one Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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