fixed a bug in setrlimit

This commit is contained in:
roberto@precise64
2012-02-27 20:21:55 +01:00
parent 9714cb6790
commit 7a34344632
+1
View File
@@ -1775,6 +1775,7 @@ int uwsgi_start(void *v_argv) {
#ifndef __OpenBSD__
if (uwsgi.rl.rlim_max > 0) {
uwsgi.rl.rlim_cur = uwsgi.rl.rlim_max;
uwsgi_log("limiting address space of processes...\n");
if (setrlimit(RLIMIT_AS, &uwsgi.rl)) {
uwsgi_error("setrlimit()");