forked from Mirrors/freeswitch
silence err
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12565 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1c30c4c4c9
commit
f08c07b124
@ -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_cur = SWITCH_SYSTEM_THREAD_STACKSIZE;
|
||||||
rlim.rlim_max = SWITCH_SYSTEM_THREAD_STACKSIZE;
|
rlim.rlim_max = SWITCH_SYSTEM_THREAD_STACKSIZE;
|
||||||
|
|
||||||
|
/**
|
||||||
if (setrlimit(RLIMIT_STACK, &rlim) < 0) {
|
if (setrlimit(RLIMIT_STACK, &rlim) < 0) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Setting stack size failed!\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Setting stack size failed!\n");
|
||||||
}
|
}
|
||||||
|
**/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (switch_core_new_memory_pool(&pool) != SWITCH_STATUS_SUCCESS) {
|
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__)
|
#if defined(HAVE_SETRLIMIT) && !defined(__FreeBSD__)
|
||||||
rlim.rlim_cur = SWITCH_THREAD_STACKSIZE;
|
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) {
|
if (setrlimit(RLIMIT_STACK, &rlim) < 0) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Setting stack size failed!\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Setting stack size failed!\n");
|
||||||
}
|
}
|
||||||
|
**/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (wait) {
|
if (wait) {
|
||||||
|
Loading…
Reference in New Issue
Block a user