diff options
author | 1999-02-23 18:50:22 +0000 | |
---|---|---|
committer | 1999-02-23 18:50:22 +0000 | |
commit | 0f7a234c10cfb29c105b6c8e3f021a73f5f746b9 (patch) | |
tree | fe7cf02f3c32bed6d04dcdbb1ca4cf592a6acf2e | |
parent | Document the other side of .MAIN (diff) | |
download | wireguard-openbsd-0f7a234c10cfb29c105b6c8e3f021a73f5f746b9.tar.xz wireguard-openbsd-0f7a234c10cfb29c105b6c8e3f021a73f5f746b9.zip |
Allow up to 5 (was 1) root processes when the process limit is reached.
This gives root a bigger chance to fix any problem that caused the limit
to be reached.
-rw-r--r-- | sys/kern/kern_fork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index d9582abe989..7b6637c0c68 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_fork.c,v 1.15 1999/02/23 18:17:19 art Exp $ */ +/* $OpenBSD: kern_fork.c,v 1.16 1999/02/23 18:50:22 art Exp $ */ /* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */ /* @@ -134,7 +134,7 @@ fork1(p1, forktype, rforkflags, retval) * processes, maxproc is the limit. */ uid = p1->p_cred->p_ruid; - if ((nprocs >= maxproc - 1 && uid != 0) || nprocs >= maxproc) { + if ((nprocs >= maxproc - 5 && uid != 0) || nprocs >= maxproc) { tablefull("proc"); return (EAGAIN); } |