From: Stefan Knoblich Date: Wed, 1 Oct 2008 13:30:38 +0000 (+0000) Subject: Style police strikes X-Git-Tag: v1.0.2~1016 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=282f0705806013091530feba4510e2cbb97944f7;p=thirdparty%2Ffreeswitch.git Style police strikes git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9776 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core.c b/src/switch_core.c index 7b3ed4e755..b328ff5ff7 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -1466,14 +1466,12 @@ SWITCH_DECLARE(int) switch_system(const char *cmd, switch_bool_t wait) int ret = 0; struct system_thread_handle *sth; switch_memory_pool_t *pool; -#ifndef __FreeBSD__ -#ifdef HAVE_SETRLIMIT +#if defined(HAVE_SETRLIMIT) && !defined(__FreeBSD__) struct rlimit rlim; rlim.rlim_cur = SWITCH_SYSTEM_THREAD_STACKSIZE; - rlim.rlim_max = SWITCH_SYSTEM_THREAD_STACKSIZE;; + rlim.rlim_max = SWITCH_SYSTEM_THREAD_STACKSIZE; setrlimit(RLIMIT_STACK, &rlim); -#endif #endif if (switch_core_new_memory_pool(&pool) != SWITCH_STATUS_SUCCESS) {