From: Greg Ames Date: Thu, 11 Oct 2001 16:28:23 +0000 (+0000) Subject: fix another seg fault. X-Git-Tag: 2.0.26~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db8132bab48a4d40d900835cbf21986e69b6633e;p=apache fix another seg fault. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91431 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/prefork/prefork.c b/server/mpm/prefork/prefork.c index 186619c58e..b2903441f3 100644 --- a/server/mpm/prefork/prefork.c +++ b/server/mpm/prefork/prefork.c @@ -663,12 +663,14 @@ static void child_main(int child_num_arg) } first_lr=lr; do { - apr_os_sock_get(&sockdes, lr->sd); - if (FD_ISSET(sockdes, &main_fds)) - goto got_listener; - lr = lr->next; - if (!lr) - lr = ap_listeners; + if (lr->active) { + apr_os_sock_get(&sockdes, lr->sd); + if (FD_ISSET(sockdes, &main_fds)) + goto got_listener; + lr = lr->next; + if (!lr) + lr = ap_listeners; + } } while (lr != first_lr); /* FIXME: if we get here, something bad has happened, and we're