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.


--- 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
_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to