]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Set keep_running and clean pool if not.
authorJean-Frederic Clere <jfclere@apache.org>
Tue, 7 Apr 2009 12:10:57 +0000 (12:10 +0000)
committerJean-Frederic Clere <jfclere@apache.org>
Tue, 7 Apr 2009 12:10:57 +0000 (12:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@762730 13f79535-47bb-0310-9956-ffa450edef68

modules/cluster/mod_heartmonitor.c

index 78b391ad39ba62eba49225ff1646429fb12f7a14..fd6667184b424666950b4a27d06a9de70df77fbd 100644 (file)
@@ -317,6 +317,7 @@ static apr_status_t hm_watchdog_callback(int state, void *data,
                              "Heartmonitor: Unable to listen for connections!");
             }
             else {
+                ctx->keep_running = -1;
                 ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ctx->s,
                              "Heartmonitor: %s listener started.",
                              HM_WATHCHDOG_NAME);
@@ -347,6 +348,7 @@ static apr_status_t hm_watchdog_callback(int state, void *data,
                 rc = apr_poll(&pfd, 1, &n, timeout);
 
                 if (!ctx->keep_running) {
+                    apr_pool_destroy(p);
                     break;
                 }
                 if (rc == APR_SUCCESS && (pfd.rtnevents & APR_POLLIN)) {