[svn-commits] rizzo: trunk r44577 - /trunk/res/res_limit.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Fri Oct 6 09:08:29 MST 2006


Author: rizzo
Date: Fri Oct  6 11:08:28 2006
New Revision: 44577

URL: http://svn.digium.com/view/asterisk?rev=44577&view=rev
Log:
help old bsd-system which don't have RLIMIT_AS and use RLIMIT_VMEM
for virtual memory limits.


Modified:
    trunk/res/res_limit.c

Modified: trunk/res/res_limit.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_limit.c?rev=44577&r1=44576&r2=44577&view=diff
==============================================================================
--- trunk/res/res_limit.c (original)
+++ trunk/res/res_limit.c Fri Oct  6 11:08:28 2006
@@ -41,6 +41,9 @@
 	{ RLIMIT_MEMLOCK, "-l", "amount of memory locked into RAM" },
 #endif
 	{ RLIMIT_NOFILE, "-n", "number of file descriptors" },
+#ifndef RLIMIT_AS	/* *BSD use RLIMIT_VMEM */
+#define	RLIMIT_AS	RLIMIT_VMEM
+#endif
 	{ RLIMIT_AS, "-v", "virtual memory" },
 };
 



More information about the svn-commits mailing list