From f8f9325cbc4beedcb570bc63503a6020545c2b71 Mon Sep 17 00:00:00 2001 From: "roberto@sirius" Date: Tue, 8 Feb 2011 16:10:51 +0100 Subject: [PATCH] osx fixes --- loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loop.c b/loop.c index adc679df..7e6b851d 100644 --- a/loop.c +++ b/loop.c @@ -130,9 +130,9 @@ void complex_loop() { #ifndef __linux__ if (uwsgi.numproc > 1) { /* re-set blocking socket */ - if (fcntl(uwsgi.wsgi_req->poll.fd, F_SETFL, uwsgi.fcntl_arg) < 0) { + if (fcntl(uwsgi.wsgi_req->poll.fd, F_SETFL, uwsgi.sockets[0].arg) < 0) { uwsgi_error("fcntl()"); - return -1; + continue; } } #endif