Commit ff12a118 authored by monty@mashka.mysql.fi's avatar monty@mashka.mysql.fi

Fix for stack size checking on Solaris.

parent a34bc8ee
......@@ -2102,9 +2102,10 @@ int main(int argc, char **argv)
#ifdef HAVE_PTHREAD_ATTR_GETSTACKSIZE
{
/* Retrieve used stack size; Needed for checking stack overflows */
size_t stack_size;
size_t stack_size= 0;
pthread_attr_getstacksize(&connection_attrib, &stack_size);
if (stack_size != thread_stack)
/* We must check if stack_size = 0 as Solaris 2.9 can return 0 here */
if (stack_size && stack_size != thread_stack)
{
if (global_system_variables.log_warnings)
sql_print_error("Warning: Asked for %ld thread stack, but got %ld",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment