diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/System/Unix/Program.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 77d74a1..1fe2586 100644 --- a/lib/System/Unix/Program.inc +++ b/lib/System/Unix/Program.inc @@ -119,10 +119,12 @@ static void SetMemoryLimits (unsigned size) getrlimit (RLIMIT_DATA, &r); r.rlim_cur = limit; setrlimit (RLIMIT_DATA, &r); +#ifndef __CYGWIN__ // Resident set size. getrlimit (RLIMIT_RSS, &r); r.rlim_cur = limit; setrlimit (RLIMIT_RSS, &r); +#endif // Virtual memory. getrlimit (RLIMIT_AS, &r); r.rlim_cur = limit; |