mirror of
https://github.com/3proxy/3proxy.git
synced 2026-10-23 08:31:25 +00:00
Increase default stack size for *nix
This commit is contained in:
parent
f8a7266bdf
commit
5c5f4e258f
2 changed files with 2 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ struct extparam conf = {
|
|||
NULL,
|
||||
NULL,
|
||||
#ifdef __FreeBSD__
|
||||
16384,
|
||||
8192,
|
||||
#else
|
||||
0,
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue