From e649b8e20984d8fa51ab6d3a16d05439f82ee6b1 Mon Sep 17 00:00:00 2001 From: Karl Heyes Date: Thu, 15 Sep 2005 22:33:13 +0000 Subject: [PATCH] reduce stack allocation to 512k, the defaults tend to be quite large svn path=/icecast/trunk/thread/; revision=10018 --- thread/thread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/thread/thread.c b/thread/thread.c index 376365f..528cfab 100644 --- a/thread/thread.c +++ b/thread/thread.c @@ -291,6 +291,7 @@ thread_type *thread_create_c(char *name, void *(*start_routine)(void *), start->arg = arg; start->thread = thread; + pthread_attr_setstacksize (&attr, 512*1024); pthread_attr_setinheritsched (&attr, PTHREAD_INHERIT_SCHED); if (detached) {