summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_proc.c
diff options
context:
space:
mode:
authorart <art@openbsd.org>1999-04-28 09:28:14 +0000
committerart <art@openbsd.org>1999-04-28 09:28:14 +0000
commita197ef3200bd75939df756dd231d991195efe33a (patch)
tree8abb82e98574d5b895e1f487af9fff1308c2c156 /sys/kern/kern_proc.c
parentMerge with EOM 1.5 (diff)
downloadwireguard-openbsd-a197ef3200bd75939df756dd231d991195efe33a.tar.xz
wireguard-openbsd-a197ef3200bd75939df756dd231d991195efe33a.zip
zap the newhashinit hack.
Add an extra flag to hashinit telling if it should wait in malloc. update all calls to hashinit.
Diffstat (limited to 'sys/kern/kern_proc.c')
-rw-r--r--sys/kern/kern_proc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
index c9f4630665e..d431cc3315b 100644
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_proc.c,v 1.5 1998/03/02 07:19:11 todd Exp $ */
+/* $OpenBSD: kern_proc.c,v 1.6 1999/04/28 09:28:14 art Exp $ */
/* $NetBSD: kern_proc.c,v 1.14 1996/02/09 18:59:41 christos Exp $ */
/*
@@ -89,9 +89,9 @@ procinit()
LIST_INIT(&allproc);
LIST_INIT(&zombproc);
- pidhashtbl = hashinit(maxproc / 4, M_PROC, &pidhash);
- pgrphashtbl = hashinit(maxproc / 4, M_PROC, &pgrphash);
- uihashtbl = hashinit(maxproc / 16, M_PROC, &uihash);
+ pidhashtbl = hashinit(maxproc / 4, M_PROC, M_WAITOK, &pidhash);
+ pgrphashtbl = hashinit(maxproc / 4, M_PROC, M_WAITOK, &pgrphash);
+ uihashtbl = hashinit(maxproc / 16, M_PROC, M_WAITOK, &uihash);
}
/*