From f08c07b12418cd0ba60f1fb35df61f3e47c7e95c Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 11 Mar 2009 14:49:37 +0000 Subject: [PATCH] silence err git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12565 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/switch_core.c b/src/switch_core.c index 66b588e457..ff48a5f3c8 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -1613,9 +1613,12 @@ SWITCH_DECLARE(int) switch_system(const char *cmd, switch_bool_t wait) rlim.rlim_cur = SWITCH_SYSTEM_THREAD_STACKSIZE; rlim.rlim_max = SWITCH_SYSTEM_THREAD_STACKSIZE; + + /** if (setrlimit(RLIMIT_STACK, &rlim) < 0) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Setting stack size failed!\n"); } + **/ #endif if (switch_core_new_memory_pool(&pool) != SWITCH_STATUS_SUCCESS) { @@ -1643,10 +1646,12 @@ SWITCH_DECLARE(int) switch_system(const char *cmd, switch_bool_t wait) #if defined(HAVE_SETRLIMIT) && !defined(__FreeBSD__) rlim.rlim_cur = SWITCH_THREAD_STACKSIZE; - rlim.rlim_max = SWITCH_THREAD_STACKSIZE; + rlim.rlim_max = SWITCH_SYSTEM_THREAD_STACKSIZE; + /** if (setrlimit(RLIMIT_STACK, &rlim) < 0) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Setting stack size failed!\n"); } + **/ #endif if (wait) {