You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by gr...@apache.org on 2004/11/27 20:29:26 UTC

svn commit: r106743 - /httpd/httpd/trunk/server/mpm/experimental/event/event.c

Author: gregames
Date: Sat Nov 27 11:29:26 2004
New Revision: 106743

URL: http://svn.apache.org/viewcvs?view=rev&rev=106743
Log:
only need one main listener loop.

logic changes only to minimize diff.

Modified:
   httpd/httpd/trunk/server/mpm/experimental/event/event.c

Modified: httpd/httpd/trunk/server/mpm/experimental/event/event.c
Url: http://svn.apache.org/viewcvs/httpd/httpd/trunk/server/mpm/experimental/event/event.c?view=diff&rev=106743&p1=httpd/httpd/trunk/server/mpm/experimental/event/event.c&r1=106742&p2=httpd/httpd/trunk/server/mpm/experimental/event/event.c&r2=106743
==============================================================================
--- httpd/httpd/trunk/server/mpm/experimental/event/event.c	(original)
+++ httpd/httpd/trunk/server/mpm/experimental/event/event.c	Sat Nov 27 11:29:26 2004
@@ -839,19 +839,12 @@
     unblock_signal(LISTENER_SIGNAL);
     apr_signal(LISTENER_SIGNAL, dummy_signal_handler);
 
-    while (1) {
-        /* TODO: requests_this_child should be synchronized - aaron */
-        if (requests_this_child <= 0) {
-            check_infinite_requests();
-        }
-
-        if (listener_may_exit)
-            break;
-
-        /* We've already decremented the idle worker count inside
-         * ap_queue_info_wait_for_idler. */
         while (!listener_may_exit) {
 
+            if (requests_this_child <= 0) {
+                check_infinite_requests();
+            }
+
             rc = apr_pollset_poll(event_pollset, timeout_interval, &num,
                                   &out_pfd);
 
@@ -992,8 +985,7 @@
             }
             apr_thread_mutex_unlock(timeout_mutex);
 
-        }                       /* while we are to keep listening */
-    }                           /* while 1 - main loop */
+        }     /* listener main loop */
 
     ap_queue_term(worker_queue);
     dying = 1;