openbsd-ports/www/varnish/patches/patch-bin_varnishd_mgt_pool_c
jasper e8bfdacb9c - update to 3.0.2
from Gonzalo L. R.
maintainer timed-out
2011-12-23 13:06:30 +00:00

16 lines
471 B
Plaintext

$OpenBSD: patch-bin_varnishd_mgt_pool_c,v 1.3 2011/12/23 13:06:30 jasper Exp $
--- bin/varnishd/mgt_pool.c.orig Mon Oct 24 03:25:13 2011
+++ bin/varnishd/mgt_pool.c Tue Nov 29 20:39:42 2011
@@ -78,7 +78,11 @@ tweak_stack_size(struct cli *cli, const struct parspec
unsigned low, u;
char buf[12];
+#if defined (__OpenBSD__)
+ low = PTHREAD_STACK_MIN;
+#else
low = sysconf(_SC_THREAD_STACK_MIN);
+#endif
if (arg != NULL && !strcmp(arg, "32bit")) {
u = 65536;