diff options
author | 1999-02-23 18:55:09 +0000 | |
---|---|---|
committer | 1999-02-23 18:55:09 +0000 | |
commit | 2276574eb28ff3cf53d7cb5987e868487d1eb7a5 (patch) | |
tree | b3e0c005437bbbeaae0cf200fec1176baa0a3f5e /sys/kern/kern_fork.c | |
parent | Allow up to 5 (was 1) root processes when the process limit is reached. (diff) | |
download | wireguard-openbsd-2276574eb28ff3cf53d7cb5987e868487d1eb7a5.tar.xz wireguard-openbsd-2276574eb28ff3cf53d7cb5987e868487d1eb7a5.zip |
update the comment about number of allowed processes
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 9 |
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) { |