提交 fe9d1ca3 authored 作者: Anthony Minessale's avatar Anthony Minessale

update

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12797 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 50423334
...@@ -1590,6 +1590,8 @@ struct system_thread_handle { ...@@ -1590,6 +1590,8 @@ struct system_thread_handle {
static void *SWITCH_THREAD_FUNC system_thread(switch_thread_t *thread, void *obj) static void *SWITCH_THREAD_FUNC system_thread(switch_thread_t *thread, void *obj)
{ {
struct system_thread_handle *sth = (struct system_thread_handle *)obj; struct system_thread_handle *sth = (struct system_thread_handle *)obj;
#if 0 // if we are a luser we can never turn this back down, didn't we already set the stack size?
#if defined(HAVE_SETRLIMIT) && !defined(__FreeBSD__) #if defined(HAVE_SETRLIMIT) && !defined(__FreeBSD__)
struct rlimit rlim; struct rlimit rlim;
...@@ -1598,10 +1600,12 @@ static void *SWITCH_THREAD_FUNC system_thread(switch_thread_t *thread, void *obj ...@@ -1598,10 +1600,12 @@ static void *SWITCH_THREAD_FUNC system_thread(switch_thread_t *thread, void *obj
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! (%s)\n", strerror(errno)); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Setting stack size failed! (%s)\n", strerror(errno));
} }
#endif
#endif #endif
sth->ret = system(sth->cmd); sth->ret = system(sth->cmd);
#if 0
#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_SYSTEM_THREAD_STACKSIZE; rlim.rlim_max = SWITCH_SYSTEM_THREAD_STACKSIZE;
...@@ -1609,6 +1613,7 @@ static void *SWITCH_THREAD_FUNC system_thread(switch_thread_t *thread, void *obj ...@@ -1609,6 +1613,7 @@ static void *SWITCH_THREAD_FUNC system_thread(switch_thread_t *thread, void *obj
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Setting stack size failed! (%s)\n", strerror(errno)); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Setting stack size failed! (%s)\n", strerror(errno));
} }
#endif
#endif #endif
switch_mutex_lock(sth->mutex); switch_mutex_lock(sth->mutex);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论