silence err

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12565 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-03-11 14:49:37 +00:00
parent 1c30c4c4c9
commit f08c07b124

View File

@ -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) {