[Freeswitch-users] freeswitch on Dragonfly BSD (RLIMIT_AS issue)

Vincent Stemen vince.freeswitch at hightek.org
Mon Jun 29 21:19:12 PDT 2009


On Wed, Jun 24, 2009 at 12:53:23AM -0400, Michael Jerris wrote:
> 
> Can we make a patch ifdefing on RLIMIT_AS to make this always work  
> without patches to system header files?

I have attached a patch to src/switch_core.c that fixes this.


-------------- next part --------------
--- src/switch_core.c.orig	2009-06-29 19:29:22 -0700
+++ src/switch_core.c	2009-06-29 19:31:21 -0700
@@ -826,7 +826,9 @@
 	setrlimit(RLIMIT_RTPRIO, &rlp);
 #endif
 
-#if !defined(__OpenBSD__) && !defined(__NetBSD__)
+#if defined(__DragonFly__)
+	setrlimit(RLIMIT_VMEM, &rlp);
+#elif !defined(__OpenBSD__) && !defined(__NetBSD__)
 	setrlimit(RLIMIT_AS, &rlp);
 #endif
 #endif


More information about the FreeSWITCH-users mailing list