]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix listener selection logic.
authorBen Laurie <ben@apache.org>
Sat, 24 Jul 1999 13:55:56 +0000 (13:55 +0000)
committerBen Laurie <ben@apache.org>
Sat, 24 Jul 1999 13:55:56 +0000 (13:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83496 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/prefork/prefork.c

index 68e6573e97fced6a863c3c571c7456163598e2a1..8301302f1a41c4f9a0ddaa88ba4894ba4ef75386 100644 (file)
@@ -2164,12 +2164,12 @@ static void child_main(int child_num_arg)
                    if (!lr) {
                        lr = ap_listeners;
                    }
-                   if (FD_ISSET(lr->fd, &main_fds)) break;
+                   if (FD_ISSET(lr->fd, &main_fds))
+                       goto got_listener;
                    lr = lr->next;
                }
-               if (lr == last_lr) {
-                   continue;
-               }
+               continue;
+       got_listener:
                last_lr = lr;
                sd = lr->fd;
            }