summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2016-03-11 19:10:15 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2016-03-11 19:10:15 +0000
commitc4861502273073a6b4b6df877ffc8708a95ef9cb (patch)
treee84c4b163f659be35ba467b0ec2448f14f609b11 /sys/kern
parentaad38c0e3276f1ad9514eba272dcf4100b422a18 (diff)
increase size of oldpids to 128 to prevent mod bias when idx wraps.
from Michal Mazurek
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_fork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index cbbb54c708a..b4875c82b7f 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_fork.c,v 1.184 2015/10/09 01:10:27 deraadt Exp $ */
+/* $OpenBSD: kern_fork.c,v 1.185 2016/03/11 19:10:14 tedu Exp $ */
/* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */
/*
@@ -563,7 +563,7 @@ fork1(struct proc *curp, int flags, void *stack, pid_t *tidptr,
/*
* Checks for current use of a pid, either as a pid or pgid.
*/
-pid_t oldpids[100];
+pid_t oldpids[128];
int
ispidtaken(pid_t pid)
{