From 74c57a6dc94e054ec1fdc76c4d72c15e9798ee05 Mon Sep 17 00:00:00 2001 From: "joerg@mysql.com" <> Date: Thu, 10 Nov 2005 14:24:54 +0100 Subject: [PATCH] Provide a default "minimum thread stack size" PTHREAD_STACK_MIN where it is missing. (Currently, affects only BSD with Linuxthreads) --- server-tools/instance-manager/priv.cc | 3 +++ 1 file changed, 3 insertions(+) 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.