fixed zero socket

This commit is contained in:
roberto@precise64
2012-03-26 14:20:08 +02:00
parent bbf1b0eda5
commit f8ff906d1b
+2
View File
@@ -2211,11 +2211,13 @@ int uwsgi_start(void *v_argv) {
if (gsa.sa->sa_family == AF_UNIX) {
uwsgi_sock = uwsgi_new_socket(usa.sa_un.sun_path);
uwsgi_sock->family = AF_UNIX;
uwsgi_sock->fd = 0;
uwsgi_log("uwsgi socket %d inherited UNIX address %s fd 0\n", uwsgi_get_socket_num(uwsgi_sock), uwsgi_sock->name);
}
else {
uwsgi_sock = uwsgi_new_socket(uwsgi_concat2("::",""));
uwsgi_sock->family = AF_INET;
uwsgi_sock->fd = 0;
uwsgi_log("uwsgi socket %d inherited INET address %s fd 0\n", uwsgi_get_socket_num(uwsgi_sock), uwsgi_sock->name);
}
}