Created
May 16, 2012 08:21
-
-
Save unbit/2708665 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r c245ac034d7c master_utils.c | |
--- a/master_utils.c Tue May 15 08:59:08 2012 +0200 | |
+++ b/master_utils.c Wed May 16 10:20:52 2012 +0200 | |
@@ -267,6 +267,17 @@ | |
uwsgi_sock = uwsgi_sock->next; | |
} | |
+ uwsgi_sock = uwsgi.shared_sockets; | |
+ while (uwsgi_sock) { | |
+ if (i == uwsgi_sock->fd) { | |
+ uwsgi_log("found fd %d mapped to shared socket %d (%s)\n", i, uwsgi_get_shared_socket_num(uwsgi_sock), uwsgi_sock->name); | |
+ found = 1; | |
+ break; | |
+ } | |
+ uwsgi_sock = uwsgi_sock->next; | |
+ } | |
+ | |
+ | |
if (!found) { | |
if (uwsgi.has_emperor) { | |
if (i == uwsgi.emperor_fd) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment