summaryrefslogtreecommitdiff
path: root/server-tools/instance-manager/priv.cc
diff options
context:
space:
mode:
authorjoerg@mysql.com <>2005-11-10 14:24:54 +0100
committerjoerg@mysql.com <>2005-11-10 14:24:54 +0100
commit74c57a6dc94e054ec1fdc76c4d72c15e9798ee05 (patch)
tree8eb63f2a8de27f3f3999da74dcf674f93db21fb6 /server-tools/instance-manager/priv.cc
parent4015635bcd974eb0587f8f9bf80a4f6a5d59dec2 (diff)
downloadmariadb-git-74c57a6dc94e054ec1fdc76c4d72c15e9798ee05.tar.gz
Provide a default "minimum thread stack size" PTHREAD_STACK_MIN where it is missing.
(Currently, affects only BSD with Linuxthreads)
Diffstat (limited to 'server-tools/instance-manager/priv.cc')
-rw-r--r--server-tools/instance-manager/priv.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/server-tools/instance-manager/priv.cc b/server-tools/instance-manager/priv.cc
index a5040aa2e83..e39c12f4ebb 100644
--- a/server-tools/instance-manager/priv.cc
+++ b/server-tools/instance-manager/priv.cc
@@ -76,6 +76,9 @@ int set_stacksize_n_create_thread(pthread_t *thread, pthread_attr_t *attr,
int rc= 0;
#ifndef __WIN__
+#ifndef PTHREAD_STACK_MIN
+#define PTHREAD_STACK_MIN 32768
+#endif
/*
Set stack size to be safe on the platforms with too small
default thread stack.