From d378d42c4c39c9f9ee319eeb2ceeecfd4da0320e Mon Sep 17 00:00:00 2001 From: "roberto@sirius" Date: Mon, 15 Feb 2010 12:09:18 +0100 Subject: [PATCH] more getsockopt fixes --- uwsgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uwsgi.c b/uwsgi.c index 459a8bd3..6e3458b5 100644 --- a/uwsgi.c +++ b/uwsgi.c @@ -669,7 +669,7 @@ int main (int argc, char *argv[], char *envp[]) { socket_type_len = sizeof (int); if (!getsockopt (3, SOL_SOCKET, SO_TYPE, &socket_type, &socket_type_len)) { - if (socket_type == AF_INET || socket_type == AF_UNIX) { + if (socket_type == SOCK_STREAM) { fprintf (stderr, "...fd 3 is a socket, i suppose this is a graceful reload of uWSGI, i will try to do my best...\n"); is_a_reload = 1; #ifdef UNBIT