Increase default stack size for *nix

This commit is contained in:
z3APA3A 2016-02-20 09:11:03 +03:00
parent f8a7266bdf
commit 5c5f4e258f
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ struct extparam conf = {
NULL,
NULL,
#ifdef __FreeBSD__
16384,
8192,
#else
0,
#endif

View File

@ -508,7 +508,7 @@ int MODULEMAINFUNC (int argc, char** argv){
#ifndef _WIN32
pthread_attr_init(&pa);
pthread_attr_setstacksize(&pa,PTHREAD_STACK_MIN + (8192 + srv.stacksize));
pthread_attr_setstacksize(&pa,PTHREAD_STACK_MIN + (16384 + srv.stacksize));
pthread_attr_setdetachstate(&pa,PTHREAD_CREATE_DETACHED);
#endif