Jeroen Ketema [Thu, 19 Nov 2009 19:30:10 +0000 (20:30 +0100)]
Signed-off-by: Michael Weber <michaelw@foldr.org>

sunos5.c

index 725f598..dc4df82 100644 (file)
--- a/sunos5.c
+++ b/sunos5.c
@@ -108,7 +108,7 @@ int set_mem_limit(unsigned long maxbytes)
        struct  rlimit rl;
        rl.rlim_cur=maxbytes; 
        rl.rlim_max=maxbytes;
-       return setrlimit(RLIMIT_VMEM,&rl);
+       return setrlimit(RLIMIT_AS,&rl);
 }
 
 int set_cpu_limit(unsigned long maxseconds)