dect
/
asterisk
Archived
13
0
Fork 0

help old bsd-system which don't have RLIMIT_AS and use RLIMIT_VMEM

for virtual memory limits.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44577 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
rizzo 2006-10-06 16:08:28 +00:00
parent d70733010d
commit ddb775e91c
1 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,9 @@ static struct limits {
{ 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" },
};