httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject svn commit: r762730 - /httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c
Date Tue, 07 Apr 2009 12:10:58 GMT
Author: jfclere
Date: Tue Apr  7 12:10:57 2009
New Revision: 762730

URL: http://svn.apache.org/viewvc?rev=762730&view=rev
Log:
Set keep_running and clean pool if not.

Modified:
    httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c

Modified: httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c?rev=762730&r1=762729&r2=762730&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c (original)
+++ httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c Tue Apr  7 12:10:57 2009
@@ -317,6 +317,7 @@
                              "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 @@
                 rc = apr_poll(&pfd, 1, &n, timeout);
 
                 if (!ctx->keep_running) {
+                    apr_pool_destroy(p);
                     break;
                 }
                 if (rc == APR_SUCCESS && (pfd.rtnevents & APR_POLLIN)) {



Mime
View raw message