Commit af6141b2 authored by unknown's avatar unknown

increase the size of a signal thread's stack (the old one was too small for...

increase the size of a signal thread's stack (the old one was too small for the thread to be created on some systems)
bug#2599


parent 883f11b6
...@@ -1689,7 +1689,7 @@ static void start_signal_handler(void) ...@@ -1689,7 +1689,7 @@ static void start_signal_handler(void)
(void) pthread_attr_setdetachstate(&thr_attr,PTHREAD_CREATE_DETACHED); (void) pthread_attr_setdetachstate(&thr_attr,PTHREAD_CREATE_DETACHED);
if (!(opt_specialflag & SPECIAL_NO_PRIOR)) if (!(opt_specialflag & SPECIAL_NO_PRIOR))
my_pthread_attr_setprio(&thr_attr,INTERRUPT_PRIOR); my_pthread_attr_setprio(&thr_attr,INTERRUPT_PRIOR);
pthread_attr_setstacksize(&thr_attr,32768); pthread_attr_setstacksize(&thr_attr,thread_stack);
#endif #endif
(void) pthread_mutex_lock(&LOCK_thread_count); (void) pthread_mutex_lock(&LOCK_thread_count);
......
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