mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-07 14:11:46 +00:00
fix getrlimit()
This commit is contained in:
+1
-1
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user