summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-02-23 18:55:10 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-02-23 18:55:10 +0000
commitda0a956c8bd68a7517317c46e92155405918b968 (patch)
tree0824a78d4225bebcc1d3a41ad927e63822044942 /sys/kern
parent35ab7c79dea930b4732116ca0538e9a339cea225 (diff)
update the comment about number of allowed processes
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_fork.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 7b6637c0c68..abc8f76d76a 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_fork.c,v 1.16 1999/02/23 18:50:22 art Exp $ */
+/* $OpenBSD: kern_fork.c,v 1.17 1999/02/23 18:55:09 art Exp $ */
/* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */
/*
@@ -128,10 +128,9 @@ fork1(p1, forktype, rforkflags, retval)
/*
* 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
- * exceed the limit. The variable nprocs is the current number of
- * processes, maxproc is the limit.
+ * a global limit on the maximum number we will create. We reserve
+ * the last 5 processes to root. The variable nprocs is the current
+ * number of processes, maxproc is the limit.
*/
uid = p1->p_cred->p_ruid;
if ((nprocs >= maxproc - 5 && uid != 0) || nprocs >= maxproc) {