osx fixes

This commit is contained in:
roberto@sirius
2011-02-08 16:10:51 +01:00
parent fa1dd3fbfd
commit f8f9325cbc
+2 -2
View File
@@ -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