summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_domain.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-03-20 05:30:58 +0000
committerjeff <jeff@FreeBSD.org>2002-03-20 05:30:58 +0000
commitdcd2af765542f95ecc4d1a0842c71e1e84733af8 (patch)
tree9496a79c5b1e697141b0de8dcf73a3e31f98a73f /sys/kern/uipc_domain.c
parentaa0e8b9e515b3df6d81ffe9b1e252449fe6efb7b (diff)
downloadFreeBSD-src-dcd2af765542f95ecc4d1a0842c71e1e84733af8.zip
FreeBSD-src-dcd2af765542f95ecc4d1a0842c71e1e84733af8.tar.gz
Add calls to uma_zone_set_max() to restore previously enforced limits.
Diffstat (limited to 'sys/kern/uipc_domain.c')
-rw-r--r--sys/kern/uipc_domain.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c
index 9e80733..b8321eb 100644
--- a/sys/kern/uipc_domain.c
+++ b/sys/kern/uipc_domain.c
@@ -127,6 +127,7 @@ domaininit(void *dummy)
socket_zone = uma_zcreate("socket", sizeof(struct socket), NULL, NULL,
NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
+ uma_zone_set_max(socket_zone, maxsockets);
if (max_linkhdr < 16) /* XXX */
max_linkhdr = 16;
OpenPOWER on IntegriCloud