]> granicus.if.org Git - apache/commitdiff
Reset the timers when in the child -- this prevents a fork bomb, as each child would...
authorPaul Querna <pquerna@apache.org>
Sat, 1 Nov 2008 06:14:12 +0000 (06:14 +0000)
committerPaul Querna <pquerna@apache.org>
Sat, 1 Nov 2008 06:14:12 +0000 (06:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@709655 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/simple/simple_run.c

index 3a77451a96bd756452a2051b606aa8a6b4d78377..80bb9186f912549a8854a65359c995d138b72002 100644 (file)
@@ -281,6 +281,12 @@ int simple_child_loop(simple_core_t * sc)
         return rv;
     }
 
+    /* XXXXX: Hack. Reseting parts of the simple core needs to be more
+     * thought out than this. 
+     */
+    APR_RING_INIT(&sc->timer_ring, simple_timer_t, link);
+    APR_RING_INIT(&sc->dead_timer_ring, simple_timer_t, link);
+
     rv = simple_setup_workers(sc);
     if (rv) {
         ap_log_error(APLOG_MARK, APLOG_CRIT, rv, NULL,