* resource.cc (getrlimit): Just return RLIM_INFINITY in a request for

RLIMIT_AS.
This commit is contained in:
Corinna Vinschen 2011-08-07 19:49:08 +00:00
parent 60b55c4c18
commit f0b7368c68
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2011-08-07 Corinna Vinschen <corinna@vinschen.de>
* resource.cc (getrlimit): Just return RLIM_INFINITY in a request for
RLIMIT_AS.
2011-08-07 Corinna Vinschen <corinna@vinschen.de>
* fhandler_process.cc (format_process_maps): Actually print info about

View File

@ -14,6 +14,7 @@ details. */
#include "winsup.h"
#include <unistd.h>
#include <sys/param.h>
#include "pinfo.h"
#include "psapi.h"
#include "cygtls.h"
@ -128,6 +129,7 @@ getrlimit (int resource, struct rlimit *rlp)
case RLIMIT_CPU:
case RLIMIT_FSIZE:
case RLIMIT_DATA:
case RLIMIT_AS:
break;
case RLIMIT_STACK:
if (!VirtualQuery ((LPCVOID) &m, &m, sizeof m))
@ -148,10 +150,6 @@ getrlimit (int resource, struct rlimit *rlp)
case RLIMIT_CORE:
rlp->rlim_cur = cygheap->rlim_core;
break;
case RLIMIT_AS:
rlp->rlim_cur = 0x80000000UL;
rlp->rlim_max = 0x80000000UL;
break;
default:
set_errno (EINVAL);
return -1;