From db8132bab48a4d40d900835cbf21986e69b6633e Mon Sep 17 00:00:00 2001 From: Greg Ames Date: Thu, 11 Oct 2001 16:28:23 +0000 Subject: [PATCH] fix another seg fault. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91431 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/prefork/prefork.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 -- 2.40.0