more getsockopt fixes

This commit is contained in:
roberto@sirius
2010-02-15 12:09:18 +01:00
parent 4faeb852c6
commit d378d42c4c
+1 -1
View File
@@ -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