2010-09-11 09:03:46 -04:00
|
|
|
$OpenBSD: patch-bin_varnishd_mgt_pool_c,v 1.2 2010/09/11 13:03:46 jim Exp $
|
2010-06-30 17:49:37 -04:00
|
|
|
--- bin/varnishd/mgt_pool.c.orig Wed May 5 03:32:03 2010
|
|
|
|
+++ bin/varnishd/mgt_pool.c Sun Jun 27 14:10:25 2010
|
|
|
|
@@ -80,7 +80,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, "32")) {
|
|
|
|
u = 65536;
|