diff options
author | unknown <joerg@mysql.com> | 2005-11-10 14:24:54 +0100 |
---|---|---|
committer | unknown <joerg@mysql.com> | 2005-11-10 14:24:54 +0100 |
commit | d295807e88d8efc51c0d598f1ce6d22e78c9ee61 (patch) | |
tree | 8eb63f2a8de27f3f3999da74dcf674f93db21fb6 /server-tools | |
parent | 50ab7648296f2d31d9e7a0ada59ab9b3f79686d3 (diff) | |
download | mariadb-git-d295807e88d8efc51c0d598f1ce6d22e78c9ee61.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')
-rw-r--r-- | server-tools/instance-manager/priv.cc | 3 |
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. |