]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add patch from FSCORE-196
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 1 Oct 2008 12:55:41 +0000 (12:55 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 1 Oct 2008 12:55:41 +0000 (12:55 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9774 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core.c

index e8411fa3d77a6e414a4f9fd1f6e3964f1d0ad264..7b3ed4e7556df533bd1a64a8f5c69a767961c02e 100644 (file)
@@ -1466,12 +1466,14 @@ 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
        struct rlimit rlim;
 
        rlim.rlim_cur = 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) {