fix getrlimit()

This commit is contained in:
roberto@sirius
2010-05-18 07:06:07 +02:00
parent fb5ba40f0c
commit 4106931175
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
def application(env, start_response):
#print env
print env
start_response('200 Ok', [('Content-type', 'text/plain')])
yield "hello world"
yield "hello world2"
+1 -1
View File
@@ -558,7 +558,7 @@ int main(int argc, char *argv[], char *envp[]) {
if (!getrlimit(RLIMIT_AS, &uwsgi.rl)) {
#ifndef UNBIT
// check for overflow
if ((sizeof(void *) == 4 && (uint32_t) uwsgi.rl.rlim_max < UINT32_MAX) || (sizeof(void *) == 8 && (uint64_t) uwsgi.rl.rlim_max < UINT64_MAX)) {
if (uwsgi.rl.rlim_max != RLIM_INFINITY) {
#endif
uwsgi_log("your process address space limit is %lld bytes (%lld MB)\n", (long long) uwsgi.rl.rlim_max, (long long) uwsgi.rl.rlim_max / 1024 / 1024);
#ifndef UNBIT