From 682501946dd0637cfe9fc2477bc3a6e78c032349 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Sun, 29 Jan 2006 22:13:49 +0000 Subject: limit stacksize of helper thread to 1mb ... should be more than enough ... svn path=/trunk/externals/tb/; revision=4518 --- sndfiler/src/sndfiler.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sndfiler/src/sndfiler.c b/sndfiler/src/sndfiler.c index 507510a..9bf6b65 100755 --- a/sndfiler/src/sndfiler.c +++ b/sndfiler/src/sndfiler.c @@ -203,7 +203,10 @@ static void sndfiler_start_thread(void) sf_param.sched_priority=sched_get_priority_min(SCHED_OTHER); pthread_attr_setschedparam(&sf_attr,&sf_param); - + + /* 1mb of stack should be enough */ + pthread_attr_setstacksize(&sf_attr,1048576); + #ifdef UNIX if (sys_hipriority == 1/* && getuid() == 0 */) { -- cgit v1.2.1